mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #2282 from OTHGMars/CanvasResize
Fixes CanvasSizeChangeSignal and Canvas::onResize() under SDL
This commit is contained in:
commit
d74a25540f
1 changed files with 1 additions and 0 deletions
|
|
@ -598,6 +598,7 @@ void PlatformWindowSDL::_processSDLEvent(SDL_Event &evt)
|
||||||
SDL_GetWindowSize( mWindowHandle, &width, &height );
|
SDL_GetWindowSize( mWindowHandle, &width, &height );
|
||||||
mVideoMode.resolution.set( width, height );
|
mVideoMode.resolution.set( width, height );
|
||||||
getGFXTarget()->resetMode();
|
getGFXTarget()->resetMode();
|
||||||
|
resizeEvent.trigger(getWindowId(), width, height);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue