1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 07:43:01 +01:00

Refactor Viewport.cpp to use ScreenRect (#15790)

This commit is contained in:
Sijmen
2021-10-27 05:13:38 +02:00
committed by GitHub
parent ea3463399f
commit cec8447c6f
10 changed files with 67 additions and 85 deletions

View File

@@ -1246,7 +1246,7 @@ static void window_draw_single(rct_drawpixelinfo* dpi, rct_window* w, int32_t le
*/
void window_draw_viewport(rct_drawpixelinfo* dpi, rct_window* w)
{
viewport_render(dpi, w->viewport, dpi->x, dpi->y, dpi->x + dpi->width, dpi->y + dpi->height);
viewport_render(dpi, w->viewport, { { dpi->x, dpi->y }, { dpi->x + dpi->width, dpi->y + dpi->height } });
}
void window_set_position(rct_window* w, const ScreenCoordsXY& screenCoords)