From ada670cd34a229423646585c4bd12b259343c7e6 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 13 May 2025 18:13:04 -0700 Subject: [PATCH] Use `WM_QUIT` --- ISLE/isleapp.cpp | 2 +- LEGO1/lego/legoomni/include/legomain.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 1ceaa540..8350cab6 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -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: diff --git a/LEGO1/lego/legoomni/include/legomain.h b/LEGO1/lego/legoomni/include/legomain.h index fc543cf6..6ba6266e 100644 --- a/LEGO1/lego/legoomni/include/legomain.h +++ b/LEGO1/lego/legoomni/include/legomain.h @@ -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);