1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #22066: FPS counter copied over viewport when using centred toolbar (#22068)

This commit is contained in:
Aaron van Geffen
2024-05-20 15:04:27 +02:00
committed by GitHub
parent 08a3513f7f
commit 6cb49d2e3b

View File

@@ -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()