# HG changeset patch # User sam # Date 1718429284 -25200 # Node ID ce180935334dfa4bbe6b6e56d2d8e1801afd3e46 # Parent 6a7f09909a37d0afb5e8c0ecdb5f3296f430055a fix: windows cursor not visible on border 1 diff -r 6a7f09909a37 -r ce180935334d semicongine/platform/windows/window.nim --- a/semicongine/platform/windows/window.nim Sat Jun 15 11:57:05 2024 +0700 +++ b/semicongine/platform/windows/window.nim Sat Jun 15 12:28:04 2024 +0700 @@ -60,6 +60,12 @@ currentEvents.add(Event(eventType: events.MouseMoved, x: GET_X_LPARAM(lParam), y: GET_Y_LPARAM(lParam))) of WM_MOUSEWHEEL: currentEvents.add(Event(eventType: events.MouseWheel, amount: float32(GET_WHEEL_DELTA_WPARAM(wParam)) / WHEEL_DELTA)) + of WM_SETCURSOR: + if LOWORD(lParam) == HTCLIENT: + ShowCursor(false) + else: + ShowCursor(true) + return true else: return DefWindowProc(hwnd, uMsg, wParam, lParam)