changeset 621:3a9d92533312

More work.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 13 Apr 2013 01:43:19 +0300
parents 5fda51e99fe5
children 8ba49471c143
files dmsimple.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dmsimple.c	Sat Apr 13 01:27:25 2013 +0300
+++ b/dmsimple.c	Sat Apr 13 01:43:19 2013 +0300
@@ -456,6 +456,17 @@
         SDL_Delay(25);
     }
 
+    // Okay, we accepted the selection
+    if (menuState == 1)
+    {
+        DMModeEntry *mode = &engineModeList[menuOffset + menuIndex];
+        engine.optVidWidth = mode->w;
+        engine.optVidHeight = mode->h;
+        engine.optVidAspect = mode->aspect;
+        if (fullScreen)
+            engine.optVFlags |= SDL_FULLSCREEN;
+    }
+
 out:
     SDL_FreeSurface(menuBgImage);
     SDL_FreeSurface(menuBarImage);