Explorar el Código

Merge pull request #2282 from OTHGMars/CanvasResize

Fixes CanvasSizeChangeSignal and Canvas::onResize()  under SDL
Areloch hace 7 años
padre
commit
d74a25540f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Engine/source/windowManager/sdl/sdlWindow.cpp

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

@@ -598,6 +598,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;
             }