Fix #6845: Logo artifacts when changing scale.

This correctly invalidates the areas with logo and version text.
This commit is contained in:
Hielke Morsink authored and Aaron van Geffen committed 2017-12-31 13:14:03 +01:00
1 parent 7a8c5c2842
commit db7efda880
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ static rct_window_event_list window_title_logo_events = {
*/
rct_window * window_title_logo_open()
{
rct_window *window = window_create(0, 0, 200, 106, &window_title_logo_events, WC_TITLE_LOGO, WF_STICK_TO_BACK | WF_TRANSPARENT);
rct_window *window = window_create(0, 0, 232, 136, &window_title_logo_events, WC_TITLE_LOGO, WF_STICK_TO_BACK | WF_TRANSPARENT);
window->widgets = window_title_logo_widgets;
window_init_scroll_widgets(window);
window->colours[0] = TRANSLUCENT(COLOUR_GREY);
+3
View File
@@ -383,6 +383,9 @@ extern "C"
openrct2_write_full_version_info(ch, sizeof(buffer) - (ch - buffer));
gfx_draw_string(dpi, buffer, COLOUR_BLACK, x + 5, y + 5 - 13);
// Invalidate screen area
gfx_set_dirty_blocks(x, y, x + 500, y + 30);
// Write platform information
snprintf(ch, 256 - (ch - buffer), "%s (%s)", OPENRCT2_PLATFORM, OPENRCT2_ARCHITECTURE);
gfx_draw_string(dpi, buffer, COLOUR_BLACK, x + 5, y + 5);