X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=6c2e968417e2b82f7ba74544d3d6634d931417d2;hb=5c6c42f1;hp=aa9a4de14c44f06717528e76d269fa2abc388bde;hpb=e7708c173a04372c58664da368a2ede5a1214836;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index aa9a4de1..6c2e9684 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -421,6 +421,11 @@ void LimitScreenUpdates(boolean enable) SDLLimitScreenUpdates(enable); } +void InitVideoDefaults(void) +{ + video.default_depth = 32; +} + void InitVideoDisplay(void) { if (program.headless) @@ -466,7 +471,7 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen) SDLInitVideoBuffer(fullscreen); - video.initialized = TRUE; + video.initialized = !program.headless; drawto = backbuffer; }