- 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:
Randy Heit 2010-04-07 02:16:51 +00:00
parent 2772786a7e
commit d6d2ce6b24

View file

@ -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;