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

Method drawStringYOffsets

src/OpenLoco/src/Graphics/TextRenderer.cpp:2075–2084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2073 }
2074
2075 void TextRenderer::drawStringYOffsets(Ui::Point loc, AdvancedColour colour, const char* str, const int8_t* yOffsets)
2076 {
2077 auto& rt = _ctx.currentRenderTarget();
2078
2079 TextDrawingState drawState;
2080 drawState.font = _currentFontSpriteBase;
2081 drawState.fontFlags = _currentFontFlags;
2082
2083 return Impl::drawStringYOffsets(drawState, _ctx, rt, loc, colour, str, yOffsets);
2084 }
2085
2086 void TextRenderer::drawStringTicker(Ui::Point origin, StringId stringId, Colour colour, uint8_t numLinesToDisplay, uint16_t numCharactersToDisplay, uint16_t width)
2087 {

Callers 1

drawStringStructsMethod · 0.80

Calls 1

drawStringYOffsetsFunction · 0.85

Tested by

no test coverage detected