1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 03:35:09 +01:00

Use ScreenCoordsXY on Graph::Draw

This commit is contained in:
Tulio Leao
2021-03-27 00:16:22 -03:00
parent d34dc3c924
commit eab297f9ff
3 changed files with 10 additions and 9 deletions

View File

@@ -287,12 +287,12 @@ namespace Graph
}
void Draw(
rct_drawpixelinfo* dpi, const money32* history, const int32_t count, const int32_t baseX, const int32_t baseY,
rct_drawpixelinfo* dpi, const money32* history, const int32_t count, const ScreenCoordsXY& screenCoords,
const int32_t modifier, const int32_t offset)
{
DrawMonths(dpi, history, count, baseX, baseY);
DrawLineA(dpi, history, count, baseX, baseY, modifier, offset);
DrawLineB(dpi, history, count, baseX, baseY, modifier, offset);
DrawHoveredValue(dpi, history, count, baseX, baseY, modifier, offset);
DrawMonths(dpi, history, count, screenCoords.x, screenCoords.y);
DrawLineA(dpi, history, count, screenCoords.x, screenCoords.y, modifier, offset);
DrawLineB(dpi, history, count, screenCoords.x, screenCoords.y, modifier, offset);
DrawHoveredValue(dpi, history, count, screenCoords.x, screenCoords.y, modifier, offset);
}
} // namespace Graph