summaryrefslogtreecommitdiff
path: root/src/video.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video.h')
-rw-r--r--src/video.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video.h b/src/video.h
index df9cd518..c98434e6 100644
--- a/src/video.h
+++ b/src/video.h
@@ -49,15 +49,21 @@ struct VideoSettings
int width = defaultScreenWidth;
int height = defaultScreenHeight;
int display = 0;
+ int userScale = 0;
bool vsync = true;
bool openGL = false;
+ int scale() const;
+ int autoScale() const;
+ int maxScale() const;
+
bool operator==(const VideoSettings &other) const
{
return width == other.width &&
height == other.height &&
windowMode == other.windowMode &&
display == other.display &&
+ userScale == other.userScale &&
vsync == other.vsync &&
openGL == other.openGL;
}
@@ -83,6 +89,11 @@ public:
*/
bool apply(const VideoSettings &settings);
+ /**
+ * Handle a change in window size, possibly adjusting the scale.
+ */
+ void windowSizeChanged(int width, int height);
+
const DisplayMode &desktopDisplayMode() const
{
return mDesktopDisplayMode;