diff options
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index 79513e2c..55f67568 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -203,6 +203,11 @@ class Graphics : public gcn::Graphics int getHeight() const { return mHeight; } /** + * Returns the graphics scale. + */ + float getScale() const { return mScale; } + + /** * Converts a window coordinate to a logical coordinate. Used for * converting mouse coordinates. */ @@ -237,6 +242,7 @@ class Graphics : public gcn::Graphics protected: int mWidth = 0; int mHeight = 0; + float mScale = 1.0f; gcn::Color mColor; }; |