From c7d6bd68059776467ae4664819b5efda3f99944b Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Mon, 6 Jan 2025 08:48:47 -0700 Subject: [PATCH] win32 gui: unbreak window icon woops, accidently broke the window icon by moving the code that loads it after calling RegisterClass, here's the fix --- src/win32/gui.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win32/gui.zig b/src/win32/gui.zig index 9357e5d..656fbff 100644 --- a/src/win32/gui.zig +++ b/src/win32/gui.zig @@ -396,6 +396,9 @@ fn entry(pid: thespian.pid) !void { const CLASS_NAME = win32.L("Flow"); + const initial_placement = calcWindowPlacement(); + global.icons = getIcons(initial_placement.dpi); + // we only need to register the window class once per process if (global.window_class == 0) { const wc = win32.WNDCLASSEXW{ @@ -419,9 +422,6 @@ fn entry(pid: thespian.pid) !void { ); } - const initial_placement = calcWindowPlacement(); - global.icons = getIcons(initial_placement.dpi); - var create_args = CreateWindowArgs{ .allocator = arena_instance.allocator(), .pid = pid,