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

This commit is contained in:
Aaron van Geffen authored and GitHub committed 2024-05-20 15:04:27 +02:00
1 parent 08a3513f7f
commit 6cb49d2e3b
1 file changed
+1 -1
+1 -1
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()