1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix #6845: Logo artifacts when changing scale.

This correctly invalidates the areas with logo and version text.
This commit is contained in:
Hielke Morsink
2017-07-18 00:47:21 +02:00
committed by Aaron van Geffen
parent 7a8c5c2842
commit db7efda880
2 changed files with 4 additions and 1 deletions

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);

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);