diff options
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r-- | src/render/graphics.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h index 82ef32fea..adf1b97c4 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -127,9 +127,13 @@ class Graphics : public gcn::Graphics /** * Try to create a window with the given settings. */ - virtual bool setVideoMode(const int w, const int h, const int bpp, - const bool fs, const bool hwaccel, - const bool resize, const bool noFrame) = 0; + virtual bool setVideoMode(const int w, const int h, + const int scale, + const int bpp, + const bool fs, + const bool hwaccel, + const bool resize, + const bool noFrame) = 0; /** * Set fullscreen mode. @@ -341,8 +345,16 @@ class Graphics : public gcn::Graphics virtual void completeCache() = 0; + int getScale() const + { return mScale; } + + virtual bool allowScale() const + { return false; } + int mWidth; int mHeight; + int mActualWidth; + int mActualHeight; protected: /** @@ -350,9 +362,13 @@ class Graphics : public gcn::Graphics */ Graphics(); - void setMainFlags(const int w, const int h, const int bpp, - const bool fs, const bool hwaccel, - const bool resize, const bool noFrame); + void setMainFlags(const int w, const int h, + const int scale, + const int bpp, + const bool fs, + const bool hwaccel, + const bool resize, + const bool noFrame); int getOpenGLFlags() const A_WARN_UNUSED; @@ -386,6 +402,7 @@ class Graphics : public gcn::Graphics std::string mName; int mStartFreeMem; bool mSync; + int mScale; gcn::Color mColor; gcn::Color mColor2; }; |