summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-06 22:53:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-06 22:53:16 +0300
commit5f434dba57bd80ab370dba5a9a425e86acbe800f (patch)
tree154a41f52d9af7dd2ddde999aa606e65686b1e0f /src/graphics.cpp
parent7b155f111daf5d7ae477b16d0f0789b1113bea74 (diff)
downloadplus-5f434dba57bd80ab370dba5a9a425e86acbe800f.tar.gz
plus-5f434dba57bd80ab370dba5a9a425e86acbe800f.tar.bz2
plus-5f434dba57bd80ab370dba5a9a425e86acbe800f.tar.xz
plus-5f434dba57bd80ab370dba5a9a425e86acbe800f.zip
Dump surface format at start.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index d94963f06..1d557d897 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -282,11 +282,7 @@ bool Graphics::videoInfo()
mDoubleBuffer = ((mTarget->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF);
logger->log("Double buffer mode: %s", mDoubleBuffer ? "yes" : "no");
- if (mTarget->format)
- {
- logger->log("Bits per pixel: %d", mTarget->format->BytesPerPixel);
-// bpp = mTarget->format->BytesPerPixel;
- }
+ Image::dumpSurfaceFormat(mTarget);
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
if (!vi)