From aa89a0a9709be2537c0635d82eb353abbcff057e Mon Sep 17 00:00:00 2001
From: nehalmistry <>
Date: Mon, 17 Jun 2002 16:01:47 +0000
Subject: [PATCH] small fix for resolution change

---
 src/ui/menus.cpp | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/ui/menus.cpp b/src/ui/menus.cpp
index 2e8c94714..a013d4e6c 100644
--- a/src/ui/menus.cpp
+++ b/src/ui/menus.cpp
@@ -1503,12 +1503,12 @@ local void SetRes640(Menuitem *mi __attribute__((unused)))
 	VideoWidth=600;
 	VideoHeight=480;
 	InitVideo();
-    }
-
 #ifdef USE_SDL
     if (flags & SDL_FULLSCREEN)
 	ToggleFullScreen();
 #endif
+    }
+
 }
 
 local void SetRes800(Menuitem *mi __attribute__((unused)))
@@ -1532,12 +1532,11 @@ local void SetRes800(Menuitem *mi __attribute__((unused)))
 	VideoWidth=800;
 	VideoHeight=600;
 	InitVideo();
-    }
-
 #ifdef USE_SDL
     if (flags & SDL_FULLSCREEN)
 	ToggleFullScreen();
 #endif
+    }
 }
 
 local void SetRes1024(Menuitem *mi __attribute__((unused)))
@@ -1561,12 +1560,11 @@ local void SetRes1024(Menuitem *mi __attribute__((unused)))
 	VideoWidth=1024;
 	VideoHeight=768;
 	InitVideo();
-    }
-
 #ifdef USE_SDL
     if (flags & SDL_FULLSCREEN)
 	ToggleFullScreen();
 #endif
+    }
 }
 
 local void SetRes1280(Menuitem *mi __attribute__((unused)))
@@ -1590,12 +1588,11 @@ local void SetRes1280(Menuitem *mi __attribute__((unused)))
 	VideoWidth=1280;
 	VideoHeight=960;
 	InitVideo();
-    }
-
 #ifdef USE_SDL
     if (flags & SDL_FULLSCREEN)
 	ToggleFullScreen();
 #endif
+    }
 }
 
 local void SetRes1600(Menuitem *mi __attribute__((unused)))
@@ -1619,12 +1616,11 @@ local void SetRes1600(Menuitem *mi __attribute__((unused)))
 	VideoWidth=1600;
 	VideoHeight=1200;
 	InitVideo();
-    }
-
 #ifdef USE_SDL
     if (flags & SDL_FULLSCREEN)
 	ToggleFullScreen();
 #endif
+    }
 }
 
 local void SetFullscreen(Menuitem *mi __attribute__((unused)))