summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/graphics.cpp5
-rw-r--r--src/graphics.h2
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;