fix(win32 gui): send initial resize event on window creation
closes #115
This commit is contained in:
parent
8b43cc3697
commit
9d9372bfe0
2 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,7 @@ pub fn run(self: *Self) !void {
|
|||
drop_writer.writer().any(),
|
||||
.{ .rows = 25, .cols = 80, .x_pixel = 0, .y_pixel = 0 },
|
||||
);
|
||||
self.vx.queueRefresh();
|
||||
//if (self.dispatch_event) |f| f(self.handler_ctx, try self.fmtmsg(.{"resize"}));
|
||||
|
||||
self.thread = try gui.start();
|
||||
}
|
||||
|
||||
|
|
|
@ -1056,6 +1056,7 @@ fn WndProc(
|
|||
);
|
||||
std.debug.assert(existing == 0);
|
||||
std.debug.assert(state == stateFromHwnd(hwnd));
|
||||
sendResize(hwnd);
|
||||
return 0;
|
||||
},
|
||||
win32.WM_DESTROY => {
|
||||
|
|
Loading…
Add table
Reference in a new issue