浏览代码

Merge pull request #2282 from OTHGMars/CanvasResize

Fixes CanvasSizeChangeSignal and Canvas::onResize()  under SDL
Areloch 6 年之前
父节点
当前提交
6a0ef46c05
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
             }