Use WM_QUIT

This commit is contained in:
Christian Semmler 2025-05-13 18:13:04 -07:00
parent ef96ef598c
commit ada670cd34
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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);