MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / drawStringLeft

Function drawStringLeft

src/OpenLoco/src/Graphics/TextRenderer.cpp:483–496  ·  view source on GitHub ↗

* 0x00494B3F * @param rt @ * @param origin {x @ , y @ } * @param colour @ * @param stringId @ * @param args @ */

Source from the content-addressed store, hash-verified

481 * @param args @<edi>
482 */
483 static Ui::Point drawStringLeft(
484 TextDrawingState& drawState,
485 DrawingContext& ctx,
486 const RenderTarget& rt,
487 Ui::Point origin,
488 AdvancedColour colour,
489 StringId stringId,
490 FormatArgumentsView args)
491 {
492 char buffer[512];
493 StringManager::formatString(buffer, std::size(buffer), stringId, args);
494
495 return drawString(drawState, ctx, rt, origin, colour, buffer);
496 }
497
498 // 0x00494BBF
499 // al: colour

Callers 1

drawStringLeftMethod · 0.85

Calls 2

formatStringFunction · 0.85
drawStringFunction · 0.85

Tested by

no test coverage detected