MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / logRowHeight

Function logRowHeight

switch/source/ScriptScreen.cpp:54–59  ·  view source on GitHub ↗

Line pitch of the transcript, tighter than the face's own leading but never so tight that 14px glyphs touch.

Source from the content-addressed store, hash-verified

52 // Line pitch of the transcript, tighter than the face's own leading but
53 // never so tight that 14px glyphs touch.
54 int logRowHeight(void)
55 {
56 u32 h = 0;
57 Gfx::GetTextDimensions(ScriptTile::LOG_SIZE, "0", NULL, &h, FontFamily::Mono);
58 return std::max((int)h - ScriptTile::LOG_LINE_TIGHTEN, ScriptTile::LOG_SIZE + 2);
59 }
60}
61
62bool ScriptScreen::sShowing = false;

Callers 1

drawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected