mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Casting from void* to a smaller-sized integer needs an intermediate equally-sized integer
This commit is contained in:
parent
c7a4e6b2b1
commit
d5135f997f
@ -385,10 +385,11 @@ int SDL_AppEvent(void* appstate, const SDL_Event* event)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: use g_userEvent instead of SDL_EVENT_USER
|
||||||
if (event->type >= SDL_EVENT_USER && event->type <= SDL_EVENT_LAST - 1) {
|
if (event->type >= SDL_EVENT_USER && event->type <= SDL_EVENT_LAST - 1) {
|
||||||
switch (event->user.code) {
|
switch (event->user.code) {
|
||||||
case WM_ISLE_SETCURSOR:
|
case WM_ISLE_SETCURSOR:
|
||||||
g_isle->SetupCursor((Cursor) (MxS32) event->user.data1);
|
g_isle->SetupCursor((Cursor) (uintptr_t) event->user.data1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user