Skip to content

Commit

Permalink
tr1/option_control: fix controls menu height
Browse files Browse the repository at this point in the history
This fixes the controls menu for text scales 0.8 and 0.9 such that the
menu doesn't extend to the bottom of the screen or overlap the
inventory "Controls" text.

Resolves LostArtefacts#1783.
  • Loading branch information
lahm86 committed Nov 1, 2024
1 parent a0ad59f commit e1ac543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/tr1/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- fixed crash reports not working in certain circumstances (#1738)
- fixed missing trapdoor triggers in City of Khamoon (#1744)
- fixed being unable to rename the lead bar (#1774, regression from 4.5)
- fixed the controls menu extending to the bottom of the screen with certain text scaling values (#1783, regression from 2.12)
- improved enemy item drops by supporting the TR2+ approach of having drops defined in level data (#1713)
- improved Italian localization for the Config Tool
- removed health cheat (we now have the `/hp` command)
Expand Down
2 changes: 1 addition & 1 deletion src/tr1/game/option/option_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static void M_InitMenu(void)
visible_lines = 6;
} else if (Screen_GetResHeightDownscaled(RSR_TEXT) <= 384) {
visible_lines = 8;
} else if (Screen_GetResHeightDownscaled(RSR_TEXT) <= 480) {
} else if (Screen_GetResHeightDownscaled(RSR_TEXT) <= 600) {
visible_lines = 12;
} else {
visible_lines = 18;
Expand Down

0 comments on commit e1ac543

Please sign in to comment.