Ver código fonte

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

OTHGMars 6 anos atrás
pai
commit
4c96c8cea7
1 arquivos alterados com 1 adições e 0 exclusões
  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;
             }