mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Fix CanvasSizeChangeSignal and Canvas::onResize() callback for SDL Window.
This commit is contained in:
parent
e2f0fbcd2b
commit
4c96c8cea7
1 changed files with 1 additions and 0 deletions
|
|
@ -594,6 +594,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