Parcourir la source

Fix CanvasSizeChangeSignal and Canvas::onResize() callback for SDL Window.

OTHGMars il y a 6 ans
Parent
commit
4c96c8cea7
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      Engine/source/windowManager/sdl/sdlWindow.cpp

+ 1 - 0
Engine/source/windowManager/sdl/sdlWindow.cpp

@@ -594,6 +594,7 @@ void PlatformWindowSDL::_processSDLEvent(SDL_Event &evt)
                SDL_GetWindowSize( mWindowHandle, &width, &height );
                mVideoMode.resolution.set( width, height );
                getGFXTarget()->resetMode();
+               resizeEvent.trigger(getWindowId(), width, height);
                break;
             }