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

Function getSmallerLineHeight

src/OpenLoco/src/Graphics/TextRenderer.cpp:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 static uint16_t getSmallerLineHeight(Font font)
44 {
45 if (font == Font::medium_normal || font == Font::medium_bold)
46 {
47 return 5;
48 }
49 else if (font == Font::small)
50 {
51 return 3;
52 }
53 else if (font == Font::large)
54 {
55 return 9;
56 }
57 return 0;
58 }
59
60 static void setTextColours(TextDrawingState& drawState, PaletteIndex_t pal1, PaletteIndex_t pal2, PaletteIndex_t pal3)
61 {

Callers 4

loopNewlineFunction · 0.85
drawStringYOffsetsFunction · 0.85
drawStringMaxCharsFunction · 0.85
getSmallerLineHeightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected