From 6cb49d2e3b9360f68b786f3df7377e024e162b24 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 20 May 2024 15:04:27 +0200 Subject: [PATCH] Fix #22066: FPS counter copied over viewport when using centred toolbar (#22068) --- src/openrct2/paint/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/paint/Painter.cpp b/src/openrct2/paint/Painter.cpp index f887082363..791d4ab4af 100644 --- a/src/openrct2/paint/Painter.cpp +++ b/src/openrct2/paint/Painter.cpp @@ -140,7 +140,7 @@ void Painter::PaintFPS(DrawPixelInfo& dpi) DrawText(dpi, screenCoords, { COLOUR_WHITE }, buffer); // Make area dirty so the text doesn't get drawn over the last - GfxSetDirtyBlocks({ { screenCoords - ScreenCoordsXY{ 16, 4 } }, { dpi.lastStringPos.x + 16, 16 } }); + GfxSetDirtyBlocks({ { screenCoords - ScreenCoordsXY{ 16, 4 } }, { dpi.lastStringPos.x + 16, screenCoords.y + 16 } }); } void Painter::MeasureFPS()