mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Fix screen location on resize/alt+tab
This commit is contained in:
@@ -250,9 +250,11 @@ static void title_set_location(int x, int y)
|
||||
*/
|
||||
void title_fix_location()
|
||||
{
|
||||
rct_xy16 position = _titleScriptCurrentCentralPosition;
|
||||
if (position.x != -1) {
|
||||
title_set_location(position.x, position.y);
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) == SCREEN_FLAGS_TITLE_DEMO) {
|
||||
rct_xy16 position = _titleScriptCurrentCentralPosition;
|
||||
if (position.x != -1) {
|
||||
title_set_location(position.x, position.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user