mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
Extracted event management from GuiHandler and CIntObject
This commit is contained in:
@ -109,12 +109,8 @@ void WindowHandler::simpleRedraw()
|
||||
void WindowHandler::onScreenResize()
|
||||
{
|
||||
for(const auto & entry : windowsStack)
|
||||
{
|
||||
auto intObject = std::dynamic_pointer_cast<CIntObject>(entry);
|
||||
entry->onScreenResize();
|
||||
|
||||
if(intObject)
|
||||
intObject->onScreenResize();
|
||||
}
|
||||
totalRedraw();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user