diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-21 15:34:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-21 15:34:30 +0300 |
commit | c2d8a6fbeba27a125cf3e2581d762c8c58a8e6d1 (patch) | |
tree | 7005bbf9a4422465d2e3aaa4922e748a483924dd | |
parent | d83a092ae6271c78a66e1ef3de6e6f6eb40a566e (diff) | |
download | mv-c2d8a6fbeba27a125cf3e2581d762c8c58a8e6d1.tar.gz mv-c2d8a6fbeba27a125cf3e2581d762c8c58a8e6d1.tar.bz2 mv-c2d8a6fbeba27a125cf3e2581d762c8c58a8e6d1.tar.xz mv-c2d8a6fbeba27a125cf3e2581d762c8c58a8e6d1.zip |
Extract SDL video info to separate method.
-rw-r--r-- | src/graphics.cpp | 5 | ||||
-rw-r--r-- | src/graphics.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 3b2ec1fd8..3689aa0f9 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -105,6 +105,11 @@ bool Graphics::setVideoMode(int w, int h, int bpp, bool fs, mRect.w = mTarget->w; mRect.h = mTarget->h; + return videoInfo(); +} + +bool Graphics::videoInfo() +{ char videoDriverName[65]; if (SDL_VideoDriverName(videoDriverName, 64)) diff --git a/src/graphics.h b/src/graphics.h index 35316ab57..0955bf6d7 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -293,6 +293,8 @@ class Graphics : public gcn::SDLGraphics void setNoFrame(bool n) { mNoFrame = n; } + bool videoInfo(); + int mWidth; int mHeight; |