From a8012ce4e341ac3389067b6472e654be36e4ceff Mon Sep 17 00:00:00 2001 From: kunitoki Date: Tue, 17 Dec 2024 01:17:36 +0100 Subject: [PATCH] Avoid issue on wasm --- modules/yup_gui/native/yup_Windowing_sdl2.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/yup_gui/native/yup_Windowing_sdl2.cpp b/modules/yup_gui/native/yup_Windowing_sdl2.cpp index b35d29ca..0a535dd3 100644 --- a/modules/yup_gui/native/yup_Windowing_sdl2.cpp +++ b/modules/yup_gui/native/yup_Windowing_sdl2.cpp @@ -1242,13 +1242,15 @@ int displayEventDispatcher (void* userdata, SDL_Event* event) desktop->handleDisplayDisconnected (event->display.display); break; - case SDL_DISPLAYEVENT_MOVED: - desktop->handleDisplayMoved (event->display.display); - break; - case SDL_DISPLAYEVENT_ORIENTATION: desktop->handleDisplayOrientationChanged (event->display.display); break; + +#if !JUCE_EMSCRIPTEN + case SDL_DISPLAYEVENT_MOVED: + desktop->handleDisplayMoved (event->display.display); + break; +#endif } return 0;