src/SDL_compat.c
changeset 5312 035797f48321
parent 5309 da080d3247c9
child 5313 7a569d09a682
--- a/src/SDL_compat.c	Wed Feb 16 02:55:32 2011 -0800
+++ b/src/SDL_compat.c	Wed Feb 16 02:55:46 2011 -0800
@@ -558,6 +558,8 @@
         surface_flags |= SDL_NOFRAME;
     }
 
+    SDL_VideoFlags = flags;
+
     /* If we're in OpenGL mode, just create a stub surface and we're done! */
     if (flags & SDL_OPENGL) {
         SDL_VideoContext = SDL_GL_CreateContext(SDL_VideoWindow);
@@ -627,8 +629,6 @@
     SDL_PublicSurface =
         (SDL_ShadowSurface ? SDL_ShadowSurface : SDL_VideoSurface);
 
-    SDL_VideoFlags = flags;
-
     ClearVideoSurface();
 
     SetupScreenSaver(flags);