1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Refactor drawing

This commit is contained in:
Ted John
2020-08-26 00:59:11 +01:00
parent 653e22bb7b
commit 65e3d20156
4 changed files with 44 additions and 32 deletions

View File

@@ -2019,7 +2019,7 @@ bool window_is_visible(rct_window* w)
*/
void window_draw_all(rct_drawpixelinfo* dpi, int16_t left, int16_t top, int16_t right, int16_t bottom)
{
auto windowDPI = dpi->Crop(left, top, right - left, bottom - top);
auto windowDPI = dpi->Crop({ left, top }, { right - left, bottom - top });
window_visit_each([&windowDPI, left, top, right, bottom](rct_window* w) {
if (w->flags & WF_TRANSPARENT)
return;