summaryrefslogtreecommitdiff
path: root/src/d/d_menu_insect.cpp
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2026-04-11 02:43:37 -0400
committerGitHub <noreply@github.com>2026-04-10 23:43:37 -0700
commitd7c34741e23297863254089125ed9ab56617dc5b (patch)
tree6165df2b21a161a4349dd9c62440283a1909a9c1 /src/d/d_menu_insect.cpp
parentdabd6961a674f23ec0df8f2b4d16ba12e1e090e5 (diff)
Replace magic constants derived from framebuffer size (#3144)
Diffstat (limited to 'src/d/d_menu_insect.cpp')
-rw-r--r--src/d/d_menu_insect.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/d/d_menu_insect.cpp b/src/d/d_menu_insect.cpp
index d2560b548a..24c4076f01 100644
--- a/src/d/d_menu_insect.cpp
+++ b/src/d/d_menu_insect.cpp
@@ -169,6 +169,9 @@ void dMenu_Insect_c::_draw() {
mpBlackTex->draw(0.0f, 0.0f, FB_WIDTH, FB_HEIGHT, 0, 0, 0);
mpExpScreen->draw(0.0f, 0.0f, grafPort);
mpSelect_c->setOffsetX(g_drawHIO.mInsectListScreen.mConfirmOptionPosX_4x3);
+ // 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(g_drawHIO.mInsectListScreen.mConfirmOptionPosX_4x3 + 486.0f,
g_drawHIO.mInsectListScreen.mConfirmOptionPosY_4x3 + 209.0f);
mpSelect_c->draw(0.0f, 0.0f);