1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

allows resizing window in windowed mode

This commit is contained in:
Laserlicht
2025-08-31 13:15:55 +02:00
parent 759f207d8a
commit f10f9768a5
8 changed files with 28 additions and 15 deletions

View File

@@ -281,10 +281,11 @@ void GameEngine::setStatusbar(const std::shared_ptr<IStatusBar> & newStatusBar)
currentStatusBar = newStatusBar;
}
void GameEngine::onScreenResize(bool resolutionChanged)
void GameEngine::onScreenResize(bool resolutionChanged, bool windowResized)
{
if(resolutionChanged)
screenHandler().onScreenResize();
if(!screenHandler().onScreenResize(windowResized))
return;
windows().onScreenResize();
ENGINE->cursor().onScreenResize();