- Fixed: In the video modes menu, pressing Enter tried to change the screen

mode, even if the cursor wasn't on one of the mode items.


SVN r604 (trunk)
This commit is contained in:
Randy Heit 2007-12-18 03:53:02 +00:00
commit 990f720409
2 changed files with 4 additions and 2 deletions

View file

@ -2359,9 +2359,9 @@ void M_OptResponder (event_t *ev)
}
case '\r':
if (CurrentMenu == &ModesMenu)
if (CurrentMenu == &ModesMenu && item->type == screenres)
{
if (!(item->type == screenres && GetSelectedSize (CurrentItem, &NewWidth, &NewHeight)))
if (!GetSelectedSize (CurrentItem, &NewWidth, &NewHeight))
{
NewWidth = SCREENWIDTH;
NewHeight = SCREENHEIGHT;