diff --git a/src/m_options.cpp b/src/m_options.cpp index 9c8199757..e87fa87a2 100644 --- a/src/m_options.cpp +++ b/src/m_options.cpp @@ -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;