fix(win32 gui): remove missed renders warning

This commit is contained in:
CJ van den Berg 2025-01-06 15:42:15 +01:00
parent aa95e78a80
commit 29a99eefee
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -22,8 +22,6 @@ pub const style = StyleBits;
allocator: std.mem.Allocator, allocator: std.mem.Allocator,
vx: vaxis.Vaxis, vx: vaxis.Vaxis,
renders_missed: u32 = 0,
handler_ctx: *anyopaque, handler_ctx: *anyopaque,
dispatch_input: ?*const fn (ctx: *anyopaque, cbor_msg: []const u8) void = null, dispatch_input: ?*const fn (ctx: *anyopaque, cbor_msg: []const u8) void = null,
dispatch_mouse: ?*const fn (ctx: *anyopaque, y: c_int, x: c_int, cbor_msg: []const u8) void = null, dispatch_mouse: ?*const fn (ctx: *anyopaque, y: c_int, x: c_int, cbor_msg: []const u8) void = null,
@ -119,10 +117,7 @@ pub fn fmtmsg(buf: []u8, value: anytype) []const u8 {
} }
pub fn render(self: *Self) error{}!void { pub fn render(self: *Self) error{}!void {
if (!gui.updateScreen(&self.vx.screen)) { _ = gui.updateScreen(&self.vx.screen);
self.renders_missed += 1;
std.log.warn("missed {} renders, no gui window yet", .{self.renders_missed});
}
} }
pub fn stop(self: *Self) void { pub fn stop(self: *Self) void {
gui.stop(); gui.stop();