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

Part of #12098: Use ScreenRect on gfx_filter_rect (#12134)

This commit is contained in:
annoyingdroid
2020-08-01 13:40:01 -04:00
committed by GitHub
parent bf08943929
commit ddd21fa87a
4 changed files with 8 additions and 6 deletions

View File

@@ -587,7 +587,7 @@ void window_draw_widgets(rct_window* w, rct_drawpixelinfo* dpi)
if ((w->flags & WF_TRANSPARENT) && !(w->flags & WF_NO_BACKGROUND))
gfx_filter_rect(
dpi, w->windowPos.x, w->windowPos.y, w->windowPos.x + w->width - 1, w->windowPos.y + w->height - 1, PALETTE_51);
dpi, { w->windowPos, w->windowPos + ScreenCoordsXY{ w->width - 1, w->windowPos.y + w->height - 1 } }, PALETTE_51);
// todo: some code missing here? Between 006EB18C and 006EB260