From 3be79fd738086e72e5e4a39a57f86cc1f8dc988d Mon Sep 17 00:00:00 2001 From: Jonathan Haas Date: Thu, 5 Nov 2015 10:16:13 +0100 Subject: [PATCH] Fix screen location on resize/alt+tab --- src/title.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/title.c b/src/title.c index a0dfdbf461..87bf86ca92 100644 --- a/src/title.c +++ b/src/title.c @@ -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); + } } }