summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-22 11:35:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commit07390a4c8dcde85602c1a91d3773061d67d169ab (patch)
tree2128313bf3f5612d036cc35d71b2867b276b54e2 /src/graphics.cpp
parent89f6264172de327a53db26cdc15b475ca3c7e62e (diff)
downloadmanaverse-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.gz
manaverse-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.bz2
manaverse-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.xz
manaverse-07390a4c8dcde85602c1a91d3773061d67d169ab.zip
add some more fixes for SDL2 compilation.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp4
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;
}