Mercurial > games > semicongine
changeset 1150:11cd3a057d85
fix: windows cursor not visible on border 1
author | sam <sam@basx.dev> |
---|---|
date | Sat, 15 Jun 2024 14:31:17 +0700 |
parents | 5a42f044c8fd |
children | 911e43f0ee50 |
files | semicongine/platform/windows/window.nim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/platform/windows/window.nim Sat Jun 15 14:19:19 2024 +0700 +++ b/semicongine/platform/windows/window.nim Sat Jun 15 14:31:17 2024 +0700 @@ -24,7 +24,7 @@ let andCursorMask = [0xff] let xorCursorMask = [0x00] -let invisibleCursor = CreateCursor(0, 0, 1, 1, pointer(addr andCursorMask), pointer(addr xorCursorMask)) +let invisibleCursor = CreateCursor(HINSTANCE(0), 0, 0, 1, 1, pointer(addr andCursorMask), pointer(addr xorCursorMask)) proc MapLeftRightKeys(key: INT, lparam: LPARAM): INT = case key