1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Part of #12096: ScreenRect for gfx_fill_rect in libopenrct2 (#12109)

This commit is contained in:
frutiemax
2020-07-08 13:07:26 -04:00
committed by GitHub
parent 280a21fa30
commit bf2b8073cb
7 changed files with 28 additions and 19 deletions

View File

@@ -98,11 +98,12 @@ static void DrawText(rct_drawpixelinfo* dpi, const ScreenCoordsXY& coords, TextP
if (paint->UnderlineText)
{
gfx_fill_rect(
dpi, alignedCoords.x, alignedCoords.y + 11, alignedCoords.x + width, alignedCoords.y + 11, text_palette[1]);
dpi, { { alignedCoords + ScreenCoordsXY{ 0, 11 } }, { alignedCoords + ScreenCoordsXY{ width, 11 } } },
text_palette[1]);
if (text_palette[2] != 0)
{
gfx_fill_rect(
dpi, alignedCoords.x + 1, alignedCoords.y + 12, alignedCoords.x + width + 1, alignedCoords.y + 12,
dpi, { { alignedCoords + ScreenCoordsXY{ 1, 12 } }, { alignedCoords + ScreenCoordsXY{ width + 1, 12 } } },
text_palette[2]);
}
}