From 5b550dabb97e59830a7cca66525461bb5a9a45ff Mon Sep 17 00:00:00 2001 From: molivier Date: Wed, 9 Mar 2005 13:05:29 +0000 Subject: [PATCH] We didn't exit the "Reset to defaults" menu when answering "yes". Moved the "vertical sync" line a bit lower in the video options menu git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5072 d7cf8633-e32d-0410-b094-e92efae38249 --- menu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/menu.c b/menu.c index 23596ac1..452565ce 100644 --- a/menu.c +++ b/menu.c @@ -2690,6 +2690,11 @@ void M_Reset_Key (int key, char ascii) { switch (key) { + case 'Y': + case 'y': + Cbuf_AddText ("exec default.cfg\n"); + // no break here since we also exit the menu + case K_ESCAPE: case 'n': case 'N': @@ -2697,11 +2702,6 @@ void M_Reset_Key (int key, char ascii) m_entersound = true; break; - case 'Y': - case 'y': - Cbuf_AddText ("exec default.cfg\n"); - break; - default: break; } @@ -2722,7 +2722,7 @@ void M_Reset_Draw (void) #define VIDEO_ITEMS 5 int video_cursor = 0; -int video_cursor_table[] = {56, 68, 80, 100, 120}; +int video_cursor_table[] = {56, 68, 80, 100, 130}; // note: if modes are added to the beginning of this list, update the // video_resolution = x; in M_Menu_Video_f below unsigned short video_resolutions[][2] = {{320,240}, {400,300}, {512,384}, {640,480}, {800,600}, {1024,768}, {1152,864}, {1280,960}, {1280,1024}, {1600,1200}, {1792,1344}, {1920,1440}, {2048,1536}, {0,0}}; -- 2.39.2