diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-05 16:31:49 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-05 16:31:49 (GMT) |
| commit | d61690bc091af0e253abe18832cc06f6c998724a (patch) | |
| tree | bc152e2abb2790d03d9c24b9576954d307fbcafc /src/interface/Engine.h | |
| parent | d379390d066add46513da73a690ef20414b6627b (diff) | |
| download | powder-d61690bc091af0e253abe18832cc06f6c998724a.zip powder-d61690bc091af0e253abe18832cc06f6c998724a.tar.gz | |
Prevent setting double scale on smaller screens. Fixes #166
Diffstat (limited to 'src/interface/Engine.h')
| -rw-r--r-- | src/interface/Engine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interface/Engine.h b/src/interface/Engine.h index e9c4354..bcf10e6 100644 --- a/src/interface/Engine.h +++ b/src/interface/Engine.h @@ -57,6 +57,10 @@ namespace ui inline int GetMouseY() { return mousey_; } inline int GetWidth() { return width_; } inline int GetHeight() { return height_; } + inline int GetMaxWidth() { return maxWidth; } + inline int GetMaxHeight() { return maxHeight; } + + inline void SetMaxSize(int width, int height); inline void SetSize(int width, int height); @@ -90,6 +94,9 @@ namespace ui int mouseyp_; int width_; int height_; + + int maxWidth; + int maxHeight; }; } |
