1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Fix #12095: Use ScreenRect on gfx_set_dirty_blocks (#12106)

This commit is contained in:
frutiemax
2020-07-08 12:16:24 -04:00
committed by GitHub
parent b69d48c3ed
commit 280a21fa30
12 changed files with 22 additions and 22 deletions

View File

@@ -664,7 +664,7 @@ static void window_invalidate_pressed_image_buttons(rct_window* w)
continue;
if (widget_is_pressed(w, widgetIndex) || widget_is_active_tool(w, widgetIndex))
gfx_set_dirty_blocks(w->windowPos.x, w->windowPos.y, w->windowPos.x + w->width, w->windowPos.y + w->height);
gfx_set_dirty_blocks({ w->windowPos, w->windowPos + ScreenCoordsXY{ w->width, w->height } });
}
}