diff options
| author | Thomas la Cour <tlc@hyrtwol.dk> | 2024-03-01 17:08:18 +0100 |
|---|---|---|
| committer | Thomas la Cour <tlc@hyrtwol.dk> | 2024-03-03 19:53:34 +0100 |
| commit | c5d5d055ac8f4f0891bb610d720f99aaea58ce99 (patch) | |
| tree | 48b6f514a0175ff975f926aedd3f085ad8dfe31f | |
| parent | a783d4ce5b02fd36749eb80def54bbc1e53152e5 (diff) | |
Trying to resolve a strange nameclash on ShowCursor seems like raylib is also defining that. Unsure why exactly this is related so for now just tried to change the name here to _ShowCursor :/
| -rw-r--r-- | core/sys/windows/user32.odin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin index 8a97914d1..b9fbe3f65 100644 --- a/core/sys/windows/user32.odin +++ b/core/sys/windows/user32.odin @@ -93,7 +93,9 @@ foreign user32 { CreateCursor :: proc(hInst: HINSTANCE, xHotSpot: c_int, yHotSpot: c_int, nWidth: c_int, nHeight: c_int, pvANDPlane: PVOID, pvXORPlane: PVOID) -> HCURSOR --- DestroyCursor :: proc(hCursor: HCURSOR) -> BOOL --- - ShowCursor :: proc(bShow: BOOL) -> c_int --- + + @(link_name="ShowCursor") // ShowCursor somehow made the raylib fail with: D:/a/Odin/Odin/vendor/raylib/raylib.odin(1016:22) Redeclaration of foreign procedure 'ShowCursor' with different type signatures + _ShowCursor :: proc(bShow: BOOL) -> c_int --- GetWindowRect :: proc(hWnd: HWND, lpRect: LPRECT) -> BOOL --- GetClientRect :: proc(hWnd: HWND, lpRect: LPRECT) -> BOOL --- |