Skip to content

Commit

Permalink
Avoid issue on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Dec 17, 2024
1 parent 3eb8e3c commit a8012ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/yup_gui/native/yup_Windowing_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8012ce

Please sign in to comment.