mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 08:31:14 +00:00
- Fixed: maxitems calculation for MKEY_Up in M_OptButtonHandler() used the unscaled text height
instead of the scaled text height to calculate the bottom-most usable row. SVN r2275 (trunk)
This commit is contained in:
parent
2772786a7e
commit
d6d2ce6b24
1 changed files with 1 additions and 1 deletions
|
@ -2319,7 +2319,7 @@ void M_OptButtonHandler(EMenuKey key, bool repeat)
|
|||
}
|
||||
ytop *= CleanYfac_1;
|
||||
rowheight *= CleanYfac_1;
|
||||
maxitems = (screen->GetHeight() - SmallFont->GetHeight() - ytop) / rowheight + 1;
|
||||
maxitems = (screen->GetHeight() - rowheight - ytop) / rowheight + 1;
|
||||
|
||||
CurrentMenu->scrollpos = MAX (0,CurrentMenu->numitems - maxitems + CurrentMenu->scrolltop);
|
||||
CurrentItem = CurrentMenu->numitems - 1;
|
||||
|
|
Loading…
Reference in a new issue