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 /src/graphics.cpp | |
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.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 5 |
1 files changed, 5 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)) |