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

Support for changing resolution without game restart

This commit is contained in:
Ivan Savenko
2023-05-04 22:33:25 +03:00
parent 97426a3f7c
commit fd3933e589
10 changed files with 53 additions and 7 deletions

View File

@@ -294,6 +294,11 @@ void CIntObject::redraw()
}
}
void CIntObject::onScreenResize()
{
center(pos, true);
}
const Rect & CIntObject::center( const Rect &r, bool propagate )
{
pos.w = r.w;