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

Function draw

src/OpenLoco/src/Ui/Windows/TitleVersion.cpp:28–39  ·  view source on GitHub ↗

0x00439236

Source from the content-addressed store, hash-verified

26
27 // 0x00439236
28 static void draw(Ui::Window& window, Gfx::DrawingContext& drawingCtx)
29 {
30 auto tr = Gfx::TextRenderer(drawingCtx);
31
32 auto versionInfo = Version::getVersionInfo();
33 auto point = Point(window.x, window.y);
34 tr.drawString(point, AdvancedColour(Colour::white).outline(), versionInfo.c_str());
35
36 auto platformInfo = Version::getPlatformInfo();
37 point.y += 12;
38 tr.drawString(point, AdvancedColour(Colour::white).outline(), platformInfo.c_str());
39 }
40
41 static constexpr WindowEventList kEvents = {
42 .draw = draw,

Callers

nothing calls this directly

Calls 6

TextRendererClass · 0.85
getVersionInfoFunction · 0.85
getPlatformInfoFunction · 0.85
drawStringMethod · 0.80
outlineMethod · 0.80
AdvancedColourClass · 0.50

Tested by

no test coverage detected