1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

Remove dead code from Viewport.cpp (#23049)

This commit is contained in:
Aaron van Geffen
2024-10-25 08:23:38 +02:00
committed by GitHub
parent f4d2dadfe7
commit abb3870212

View File

@@ -920,18 +920,7 @@ void ViewportRender(DrawPixelInfo& dpi, const Viewport* viewport)
if (dpi.y >= viewport->pos.y + viewport->height)
return;
#ifdef DEBUG_SHOW_DIRTY_BOX
const auto dirtyBoxTopLeft = topLeft;
const auto dirtyBoxTopRight = bottomRight - ScreenCoordsXY{ 1, 1 };
#endif
ViewportPaint(viewport, dpi);
#ifdef DEBUG_SHOW_DIRTY_BOX
// FIXME g_viewport_list doesn't exist anymore
if (viewport != g_viewport_list)
GfxFillRectInset(dpi, { dirtyBoxTopLeft, dirtyBoxTopRight }, 0x2, INSET_RECT_F_30);
#endif
}
static void ViewportFillColumn(PaintSession& session)