Make up/down arrows skip over brightness and contrast's positions when

they don't exist.
This commit is contained in:
Jeff Teunissen 2001-05-14 18:08:32 +00:00
parent a7c23e13a9
commit 978d90f9f7

View file

@ -590,18 +590,12 @@ M_Options_Draw (void)
if (vid_menudrawfn) if (vid_menudrawfn)
M_Print (16, 152, " Video Options"); M_Print (16, 152, " Video Options");
#ifdef _WIN32 if (_windowed_mouse) {
//FIXMEif (modestate == MS_WINDOWED) { M_Print (16, 160, " Use Mouse");
#endif M_DrawCheckbox (220, 160, _windowed_mouse->int_val);
if (_windowed_mouse) { }
M_Print (16, 160, " Use Mouse");
M_DrawCheckbox (220, 160, _windowed_mouse->int_val);
}
#ifdef _WIN32
//FIXME}
#endif
// cursor // cursor
M_DrawCharacter (200, 32 + options_cursor * 8, M_DrawCharacter (200, 32 + options_cursor * 8,
12 + ((int) (realtime * 4) & 1)); 12 + ((int) (realtime * 4) & 1));
} }
@ -650,11 +644,19 @@ M_Options_Key (int k)
#endif #endif
if (options_cursor == 15 && !(vid_menudrawfn)) if (options_cursor == 15 && !(vid_menudrawfn))
options_cursor--; options_cursor--;
if ((options_cursor == 5) && !(contrast))
options_cursor--;
if ((options_cursor == 4) && !(brightness))
options_cursor--;
break; break;
case K_DOWNARROW: case K_DOWNARROW:
S_LocalSound ("misc/menu1.wav"); S_LocalSound ("misc/menu1.wav");
options_cursor++; options_cursor++;
if ((options_cursor == 4) && !(brightness))
options_cursor++;
if ((options_cursor == 5) && !(contrast))
options_cursor++;
if (options_cursor == 15 && !(vid_menudrawfn)) if (options_cursor == 15 && !(vid_menudrawfn))
options_cursor++; options_cursor++;
#ifdef _WIN32 #ifdef _WIN32