mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 17:54:50 +01:00
Use dpi ref in rect and line drawing functions
This commit is contained in:
committed by
duncanspumpkin
parent
2941f6f7a5
commit
bb83a80eab
@@ -98,12 +98,12 @@ void DrawText(
|
||||
if (paint.UnderlineText == TextUnderline::On)
|
||||
{
|
||||
GfxFillRect(
|
||||
&dpi, { { alignedCoords + ScreenCoordsXY{ 0, 11 } }, { alignedCoords + ScreenCoordsXY{ width, 11 } } },
|
||||
dpi, { { alignedCoords + ScreenCoordsXY{ 0, 11 } }, { alignedCoords + ScreenCoordsXY{ width, 11 } } },
|
||||
gTextPalette[1]);
|
||||
if (gTextPalette[2] != 0)
|
||||
{
|
||||
GfxFillRect(
|
||||
&dpi, { { alignedCoords + ScreenCoordsXY{ 1, 12 } }, { alignedCoords + ScreenCoordsXY{ width + 1, 12 } } },
|
||||
dpi, { { alignedCoords + ScreenCoordsXY{ 1, 12 } }, { alignedCoords + ScreenCoordsXY{ width + 1, 12 } } },
|
||||
gTextPalette[2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user