From 9021a972069faa24c4d311eb1b0035c98affe29d Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Tue, 16 Jun 2015 23:37:29 +0100 Subject: [PATCH 1/2] fix #1358 --- src/windows/scenery.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/windows/scenery.c b/src/windows/scenery.c index 6d67658ad0..aa495fd77b 100644 --- a/src/windows/scenery.c +++ b/src/windows/scenery.c @@ -602,16 +602,19 @@ static void window_scenery_resize() window_get_register(w); if (w->width < w->min_width) { + window_invalidate(w); w->width = w->min_width; window_invalidate(w); } if (w->width > w->max_width) { + window_invalidate(w); w->width = w->max_width; window_invalidate(w); } if (w->height < w->min_height) { + window_invalidate(w); w->height = w->min_height; window_invalidate(w); // HACK: For some reason invalidate has not been called @@ -620,6 +623,7 @@ static void window_scenery_resize() } if (w->height > w->max_height) { + window_invalidate(w); w->height = w->max_height; window_invalidate(w); // HACK: For some reason invalidate has not been called @@ -736,7 +740,7 @@ static void window_scenery_update(rct_window *w) } } - gfx_invalidate_screen(); + window_invalidate(w); if (!window_scenery_is_scenery_tool_active()){ window_close(w); From f2388d9b5491665d19fc7afd773c5eac7d1d564c Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Wed, 17 Jun 2015 11:38:02 +0100 Subject: [PATCH 2/2] fix changelog from showing again in same session --- src/title.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/title.c b/src/title.c index c1b2334f82..ecf2266cbc 100644 --- a/src/title.c +++ b/src/title.c @@ -133,8 +133,10 @@ void title_load() gfx_invalidate_screen(); RCT2_GLOBAL(0x009DEA66, uint16) = 0; - if (gOpenRCT2ShowChangelog) + if (gOpenRCT2ShowChangelog) { + gOpenRCT2ShowChangelog = false; window_changelog_open(); + } log_verbose("loading title finished"); }