changeset 1149:5a42f044c8fd

fix: windows cursor not visible on border 1
author sam <sam@basx.dev>
date Sat, 15 Jun 2024 14:19:19 +0700
parents 558c76bb362c
children 11cd3a057d85
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:14:47 2024 +0700
+++ b/semicongine/platform/windows/window.nim	Sat Jun 15 14:19:19 2024 +0700
@@ -24,7 +24,7 @@
 
 let andCursorMask = [0xff]
 let xorCursorMask = [0x00]
-let invisibleCursor = CreateCursor(0, 0, 1, 1, addr andCursorMask, addr xorCursorMask)
+let invisibleCursor = CreateCursor(0, 0, 1, 1, pointer(addr andCursorMask), pointer(addr xorCursorMask))
 
 proc MapLeftRightKeys(key: INT, lparam: LPARAM): INT =
   case key