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

Fix #12552: Grey rectangles appear under windows and menus (#12554)

* Fix #12552: Grey rectangles appear under windows and menus

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
Aaron van Geffen
2020-08-02 05:47:28 +02:00
committed by GitHub
parent 394e8fb733
commit e039a51826

View File

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