hedgewars/uStore.pas
changeset 5130 3602ede67ec5
parent 5109 6d2e8a24277e
child 5167 7b515d0945b1
--- a/hedgewars/uStore.pas	Sat Apr 09 15:54:28 2011 -0400
+++ b/hedgewars/uStore.pas	Sun Apr 10 20:24:25 2011 +0400
@@ -943,8 +943,11 @@
     glMatrixMode(GL_PROJECTION);
     glLoadIdentity();
 {$ELSE}
-    SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
-    SDLTry(SDLPrimSurface <> nil, true);
+    if not cOnlyStats then
+        begin
+        SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
+        SDLTry(SDLPrimSurface <> nil, true);
+        end;
 {$ENDIF}
 
     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_VideoDriverName(buf, sizeof(buf))) + ')');