diff options
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/graphics.h b/src/graphics.h index 6a17aab4..2e23b382 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -197,12 +197,17 @@ class Graphics : public gcn::SDLGraphics /** * Returns the width of the screen. */ - int getWidth() const; + int getWidth() const { return mWidth; } /** * Returns the height of the screen. */ - int getHeight() const; + int getHeight() const { return mHeight; } + + /** + * Returns the current scale ratio of the screen. + */ + int getScale() const { return mScale; } /** * Returns the amount of bits per pixel that was requested (not the @@ -231,6 +236,7 @@ class Graphics : public gcn::SDLGraphics protected: int mWidth; int mHeight; + int mScale; int mBpp; bool mFullscreen; bool mHWAccel; |