diff options
| author | Colleague Riley <[email protected]> | 2024-05-09 10:35:26 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-09 16:35:26 +0200 |
| commit | 8a5fd3ac1d481ff978363b80298770ed8eeca9f8 (patch) | |
| tree | 26c75c2ec256d869b9b9940cee326b75fa36b1c8 /src/external | |
| parent | 6ec925554cc5c5297d74b9867331fae421966519 (diff) | |
| download | raylib-8a5fd3ac1d481ff978363b80298770ed8eeca9f8.tar.gz raylib-8a5fd3ac1d481ff978363b80298770ed8eeca9f8.zip | |
Do not use "nanosleep" on windows at all (PLATFORM_DESKTOP_RGFW) (#3970)
* Fix Makefile issues (RGFW) (linux) (macOS)
* Do not use nanosleep on windows at all (PLATFORM_DESKTOP_RGFW)
---------
Co-authored-by: ColleagueRiley <[email protected]>
Diffstat (limited to 'src/external')
| -rw-r--r-- | src/external/RGFW.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/external/RGFW.h b/src/external/RGFW.h index 13b68d98..67c67e91 100644 --- a/src/external/RGFW.h +++ b/src/external/RGFW.h @@ -2753,8 +2753,8 @@ typedef struct { i32 x, y; } RGFW_vector; 4, &actualType, &actualFormat, - &count, - &bytesAfter, + (unsigned long*) &count, + (unsigned long*) &bytesAfter, (u8**) &formats); } else { formats = (Atom*) RGFW_MALLOC(E.xclient.data.l[2] + E.xclient.data.l[3] + E.xclient.data.l[4]); @@ -3002,7 +3002,6 @@ typedef struct { i32 x, y; } RGFW_vector; win->src.winArgs &= ~RGFW_MOUSE_CHANGED; } - RGFW_vector mouse = RGFW_getGlobalMousePoint(); if (win->src.winArgs & RGFW_HOLD_MOUSE && win->event.inFocus && win->event.type == RGFW_mousePosChanged) { RGFW_window_moveMouse(win, RGFW_VECTOR(win->r.x + (win->r.w / 2), win->r.y + (win->r.h / 2))); @@ -6074,7 +6073,7 @@ static HMODULE wglinstance = NULL; } void RGFW_sleep(u32 ms) { -#ifndef _MSC_VER +#ifndef RGFW_WINDOWS struct timespec time; time.tv_sec = 0; time.tv_nsec = ms * 1000; |
