forked from rosebudai/OpenRCT2-Web
Rename DrawTextBasic() to DrawText()
This commit is contained in:
63 files changed
+430
-454
No files matched your search
@@ -699,13 +699,13 @@ void CustomListView::PaintHeading(
|
||||
{
|
||||
auto ft = Formatter();
|
||||
ft.Add<StringId>(STR_UP);
|
||||
DrawTextBasic(rt, pos + ScreenCoordsXY{ size.width - 1, 0 }, STR_BLACK_STRING, ft, { TextAlignment::right });
|
||||
DrawText(rt, pos + ScreenCoordsXY{ size.width - 1, 0 }, STR_BLACK_STRING, ft, { TextAlignment::right });
|
||||
}
|
||||
else if (sortOrder == ColumnSortOrder::Descending)
|
||||
{
|
||||
auto ft = Formatter();
|
||||
ft.Add<StringId>(STR_DOWN);
|
||||
DrawTextBasic(rt, pos + ScreenCoordsXY{ size.width - 1, 0 }, STR_BLACK_STRING, ft, { TextAlignment::right });
|
||||
DrawText(rt, pos + ScreenCoordsXY{ size.width - 1, 0 }, STR_BLACK_STRING, ft, { TextAlignment::right });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -727,7 +727,7 @@ void CustomListView::PaintSeparator(RenderTarget& rt, const ScreenCoordsXY& pos,
|
||||
// Draw string
|
||||
Formatter ft;
|
||||
ft.Add<const char*>(text);
|
||||
DrawTextBasic(rt, { centreX, pos.y }, STR_STRING, ft, { baseColour, TextAlignment::centre });
|
||||
DrawText(rt, { centreX, pos.y }, STR_STRING, ft, { baseColour, TextAlignment::centre });
|
||||
|
||||
// Get string dimensions
|
||||
utf8 stringBuffer[512]{};
|
||||
|
||||
Reference in new issue
Block a user