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

Method configureLogWidth

3ds/source/ScriptScreen.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void ScriptScreen::configureLogWidth(void)
71{
72 const float advance = TextPool::get().monoAdvance(LOG_SIZE);
73 // SCROLLBAR_W keeps the longest line clear of the scrollbar track.
74 constexpr int SCROLLBAR_W = 8;
75 const int usable = ScriptTile::LOG_W - 2 * ScriptTile::LOG_PAD - SCROLLBAR_W;
76 if (advance > 0.0f) {
77 ScriptConsole::get().setWidth((size_t)(usable / advance));
78 }
79}
80
81void ScriptScreen::drawTop(void) const
82{

Callers

nothing calls this directly

Calls 3

getFunction · 0.85
monoAdvanceMethod · 0.80
setWidthMethod · 0.80

Tested by

no test coverage detected