mirror of https://github.com/OpenRCT2/OpenRCT2.git
Format required code.
This commit is contained in:
parent
89fde291c4
commit
c5687db2dd
|
@ -330,7 +330,8 @@ void DrawStringCentredRaw(
|
|||
for (int32_t i = 0; i <= numLines; i++)
|
||||
{
|
||||
int32_t width = GfxGetStringWidth(text, fontStyle);
|
||||
DrawText(dpi, screenCoords - ScreenCoordsXY{ width / 2, 0 }, { TEXT_COLOUR_254, fontStyle }, static_cast<const char*>(text));
|
||||
DrawText(
|
||||
dpi, screenCoords - ScreenCoordsXY{ width / 2, 0 }, { TEXT_COLOUR_254, fontStyle }, static_cast<const char*>(text));
|
||||
|
||||
const utf8* ch = text;
|
||||
const utf8* nextCh = nullptr;
|
||||
|
|
|
@ -287,7 +287,8 @@ static int32_t ChatHistoryDrawString(DrawPixelInfo& dpi, const char* text, const
|
|||
int32_t lineY = screenCoords.y;
|
||||
for (int32_t line = 0; line <= numLines; ++line)
|
||||
{
|
||||
DrawText(dpi, { screenCoords.x, lineY - (numLines * lineHeight) }, { TEXT_COLOUR_254 }, static_cast<const char*>(bufferPtr));
|
||||
DrawText(
|
||||
dpi, { screenCoords.x, lineY - (numLines * lineHeight) }, { TEXT_COLOUR_254 }, static_cast<const char*>(bufferPtr));
|
||||
bufferPtr = GetStringEnd(bufferPtr) + 1;
|
||||
lineY += lineHeight;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue