Skip to content
Snippets Groups Projects
Commit 978d4d0b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use cast instead of pointer math to fix Win32 build

parent d758a3e6
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4369 passed
...@@ -258,8 +258,8 @@ static int sdl_user_func_ret(int func, ...) ...@@ -258,8 +258,8 @@ static int sdl_user_func_ret(int func, ...)
while(1) { while(1) {
switch(func) { switch(func) {
case SDL_USEREVENT_SETVIDMODE: case SDL_USEREVENT_SETVIDMODE:
ev.user.data1 = NULL + va_arg(argptr, int); ev.user.data1 = (void *)va_arg(argptr, int);
ev.user.data2 = NULL + va_arg(argptr, int); ev.user.data2 = (void *)va_arg(argptr, int);
while(sdl.PeepEvents(&ev, 1, SDL_ADDEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT)!=1) while(sdl.PeepEvents(&ev, 1, SDL_ADDEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT)!=1)
YIELD(); YIELD();
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment