aboutsummaryrefslogtreecommitdiff
path: root/common/system.h
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-30 03:06:57 +0000
committerAlejandro Marzini2010-07-30 03:06:57 +0000
commit9daa1c7f9359ca2467e9067b2f31021fdb7e0981 (patch)
tree2c1347da2845d81c85f4bb6b2aeb24ed92c83e25 /common/system.h
parent37f7748a4abe9bf915871345797826641899ba49 (diff)
downloadscummvm-rg350-9daa1c7f9359ca2467e9067b2f31021fdb7e0981.tar.gz
scummvm-rg350-9daa1c7f9359ca2467e9067b2f31021fdb7e0981.tar.bz2
scummvm-rg350-9daa1c7f9359ca2467e9067b2f31021fdb7e0981.zip
OSYSTEM: Add resetGraphicsScale() method.
This fixes a hack for resetting the graphics scale to x1 when starting games that have a large screen size. The SDL graphics manager should now scale back to x1 without changing the current scaler in use, as well as the OpenGL graphics manager. svn-id: r51492
Diffstat (limited to 'common/system.h')
-rw-r--r--common/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/system.h b/common/system.h
index 6c8d6108a4..a11adb4134 100644
--- a/common/system.h
+++ b/common/system.h
@@ -356,6 +356,13 @@ public:
*/
virtual int getGraphicsMode() const = 0;
+ /**
+ * Sets the graphics scale factor to x1. Games with large screen sizes
+ * reset the scale to x1 so the screen will not be too big when starting
+ * the game.
+ */
+ virtual void resetGraphicsScale() = 0;
+
#ifdef USE_RGB_COLOR
/**
* Determine the pixel format currently in use for screen rendering.