summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp5
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))