mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Use WM_QUIT
This commit is contained in:
parent
ef96ef598c
commit
ada670cd34
@ -400,7 +400,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
|
||||
case WM_ISLE_SETCURSOR:
|
||||
g_isle->SetupCursor((Cursor) (uintptr_t) event->user.data1);
|
||||
break;
|
||||
case WM_CLOSE:
|
||||
case WM_QUIT:
|
||||
return SDL_APP_SUCCESS;
|
||||
break;
|
||||
case WM_TIMER:
|
||||
|
||||
@ -194,7 +194,7 @@ class LegoOmni : public MxOmni {
|
||||
{
|
||||
SDL_Event event;
|
||||
event.user.type = g_legoSdlEvents.m_windowsMessage;
|
||||
event.user.code = WM_CLOSE;
|
||||
event.user.code = WM_QUIT;
|
||||
event.user.data1 = NULL;
|
||||
event.user.data2 = NULL;
|
||||
SDL_PushEvent(&event);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user