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

Method drawStringCentredRaw

src/OpenLoco/src/Graphics/TextRenderer.cpp:2031–2040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029 }
2030
2031 Ui::Point TextRenderer::drawStringCentredRaw(Ui::Point origin, uint16_t linebreakCount, AdvancedColour colour, const char* wrappedStr)
2032 {
2033 auto& rt = _ctx.currentRenderTarget();
2034
2035 TextDrawingState drawState;
2036 drawState.font = _currentFontSpriteBase;
2037 drawState.fontFlags = _currentFontFlags;
2038
2039 return Impl::drawStringCentredRaw(drawState, _ctx, rt, origin, linebreakCount, colour, wrappedStr);
2040 }
2041
2042 Ui::Point TextRenderer::drawStringCentredWrapped(Ui::Point origin, uint16_t width, AdvancedColour colour, StringId stringId, FormatArgumentsView args /* = {}*/)
2043 {

Callers 2

drawFunction · 0.80
drawFunction · 0.80

Calls 1

drawStringCentredRawFunction · 0.85

Tested by

no test coverage detected