fixed setting flag for initialized video for headless mode
authorHolger Schemel <info@artsoft.org>
Sun, 9 Apr 2017 21:48:14 +0000 (23:48 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:12 +0000 (23:21 +0100)
src/libgame/system.c

index ce418468d15f87741ba7a2945118d422065ee6d1..6c2e968417e2b82f7ba74544d3d6634d931417d2 100644 (file)
@@ -471,7 +471,7 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
 
   SDLInitVideoBuffer(fullscreen);
 
-  video.initialized = TRUE;
+  video.initialized = !program.headless;
 
   drawto = backbuffer;
 }