diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-22 11:35:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | 07390a4c8dcde85602c1a91d3773061d67d169ab (patch) | |
tree | 2128313bf3f5612d036cc35d71b2867b276b54e2 /src/graphics.cpp | |
parent | 89f6264172de327a53db26cdc15b475ca3c7e62e (diff) | |
download | mv-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.gz mv-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.bz2 mv-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.xz mv-07390a4c8dcde85602c1a91d3773061d67d169ab.zip |
add some more fixes for SDL2 compilation.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 28d5e09fb..ac219bc9a 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -266,6 +266,8 @@ bool Graphics::videoInfo() logger->log("SDL video info"); #ifdef USE_SDL2 logger->log("Using video driver: %s", SDL_GetCurrentVideoDriver()); + + // +++ probably SDL_GetRendererInfo can be used for info #else char videoDriverName[65]; if (SDL_VideoDriverName(videoDriverName, 64)) @@ -274,7 +276,6 @@ bool Graphics::videoInfo() logger->log1("Using video driver: unknown"); mDoubleBuffer = ((mWindow->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF); logger->log("Double buffer mode: %s", mDoubleBuffer ? "yes" : "no"); -#endif imageHelper->dumpSurfaceFormat(mWindow); @@ -300,6 +301,7 @@ bool Graphics::videoInfo() ((vi->blit_sw_A) ? "yes" : "no")); logger->log("Accelerated color fills: %s", ((vi->blit_fill) ? "yes" : "no")); +#endif return true; } |