diff options
| author | Max Roncace <me@caseif.net> | 2026-04-11 02:43:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-10 23:43:37 -0700 |
| commit | d7c34741e23297863254089125ed9ab56617dc5b (patch) | |
| tree | 6165df2b21a161a4349dd9c62440283a1909a9c1 /src/d/d_menu_item_explain.cpp | |
| parent | dabd6961a674f23ec0df8f2b4d16ba12e1e090e5 (diff) | |
Replace magic constants derived from framebuffer size (#3144)
Diffstat (limited to 'src/d/d_menu_item_explain.cpp')
| -rw-r--r-- | src/d/d_menu_item_explain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/d/d_menu_item_explain.cpp b/src/d/d_menu_item_explain.cpp index cfb76fa24a..5159940d2e 100644 --- a/src/d/d_menu_item_explain.cpp +++ b/src/d/d_menu_item_explain.cpp @@ -325,6 +325,9 @@ void dMenu_ItemExplain_c::draw(J2DOrthoGraph* i_graph) { mpInfoString->drawOutFontLocal((J2DTextBox*)mpInfoText->getPanePtr(), -1.0f); drawKantera(); if (mpSelect_c != NULL) { + // the magic numbers here are correlated with the framebuffer size, but + // were likely either chosen by hand or had multiple arithmetic + // operations applied which cannot easily be reverse engineered mpSelect_c->translate(486.0f, 209.0f); mpSelect_c->draw(0.0f, 0.0f); } |
