# HG changeset patch # User sam # Date 1740662277 -25200 # Node ID 8ec9ce8eade03669fb7636cf9878943918262cf8 # Parent 04cf279709a0a3e2142edeab6a0b4a4f94f35d1d fix: windows compilation errors diff -r 04cf279709a0 -r 8ec9ce8eade0 semicongine/platform/windows/types.nim --- a/semicongine/platform/windows/types.nim Thu Feb 27 20:04:37 2025 +0700 +++ b/semicongine/platform/windows/types.nim Thu Feb 27 20:17:57 2025 +0700 @@ -3,7 +3,7 @@ type NativeWindow* = object hinstance*: HINSTANCE hwnd*: HWND - g_wpPrev: WINDOWPLACEMENT + g_wpPrev*: WINDOWPLACEMENT type NativeSoundDevice* = object handle*: HWAVEOUT diff -r 04cf279709a0 -r 8ec9ce8eade0 semicongine/rendering/platform/windows.nim --- a/semicongine/rendering/platform/windows.nim Thu Feb 27 20:04:37 2025 +0700 +++ b/semicongine/rendering/platform/windows.nim Thu Feb 27 20:17:57 2025 +0700 @@ -128,7 +128,7 @@ ): LRESULT {.stdcall.} = case uMsg of WM_DESTROY: - currentEvents.add(Event(eventType: events.EventType.Quit)) + currentEvents.add(Event(eventType: Quit)) of WM_KEYDOWN, WM_SYSKEYDOWN: let key = mapLeftRightKeys(INT(wParam), lParam) currentEvents.add(