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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user