GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Fixes CanvasSizeChangeSignal and Canvas::onResize() under SDL #2282

Closed OTHGMars closed 5 years ago

OTHGMars commented 6 years ago

The CanvasSizeChangeSignal is never triggered and Canvas::onResize() is never called when resizing the platform window under SDL. To verify, place a breakpoint at https://github.com/GarageGames/Torque3D/blob/development/Engine/source/gui/core/guiCanvas.cpp#L356, run the game and maximize/restore or resize the platform window. The breakpoint should be hitting, but it is not. This one line commit fixes that to match the legacy windows win32 platform behavior.