diff options
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/graphics.h b/src/graphics.h index 6a17aab4..cffdb143 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -195,14 +195,19 @@ class Graphics : public gcn::SDLGraphics virtual void updateScreen(); /** - * Returns the width of the screen. + * Returns the width of the drawable surface. */ - int getWidth() const; + int getWidth() const { return mWidth; } /** - * Returns the height of the screen. + * Returns the height of the drawable surface. */ - 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,10 +236,12 @@ class Graphics : public gcn::SDLGraphics protected: int mWidth; int mHeight; + int mScale; int mBpp; bool mFullscreen; bool mHWAccel; BlitMode mBlitMode; + SDL_Surface *mScreenSurface; }; extern Graphics *graphics; |