aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEugene Sandulenko2005-03-09 23:07:32 +0000
committerEugene Sandulenko2005-03-09 23:07:32 +0000
commit7bb53f3bf10acf3b97d635b75e50b3c51b2ff862 (patch)
treeab25d421bbffb9d1e43079b3b40b2bab0e0fd820 /common
parentb72df416a64642d180e9b746484ce292d845fae4 (diff)
downloadscummvm-rg350-7bb53f3bf10acf3b97d635b75e50b3c51b2ff862.tar.gz
scummvm-rg350-7bb53f3bf10acf3b97d635b75e50b3c51b2ff862.tar.bz2
scummvm-rg350-7bb53f3bf10acf3b97d635b75e50b3c51b2ff862.zip
Patch #1013937 "OSystem layer with bigger resolution". Now you will always
get at least 640x400 window. And finally we have means of implementing nice looking GUI. Also updated all backends. If your backend has ability to run with 640x400 or 640x480 resolution then read patch tracker item to find out details. Other port maintainers shouldn't worry, as this patch doesn't affect them, they still get their 320x200. svn-id: r17055
Diffstat (limited to 'common')
-rw-r--r--common/system.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/system.h b/common/system.h
index 0cc65cfdf1..639729ab03 100644
--- a/common/system.h
+++ b/common/system.h
@@ -216,7 +216,7 @@ public:
* @param width the new virtual screen width
* @param height the new virtual screen height
*/
- virtual void initSize(uint width, uint height) = 0;
+ virtual void initSize(uint width, uint height, int overlayScale = -1) = 0;
/**
* Begin a new GFX transaction, which is a sequence of GFX mode changes.
@@ -351,6 +351,10 @@ public:
virtual void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) = 0;
virtual int16 getOverlayHeight() { return getHeight(); }
virtual int16 getOverlayWidth() { return getWidth(); }
+ virtual int ScreenToOverlayX(int x) { return x; }
+ virtual int ScreenToOverlayY(int y) { return y; }
+ virtual int OverlayToScreenX(int x) { return x; }
+ virtual int OverlayToScreenY(int y) { return y; }
/**
* Convert the given RGB triplet into an OverlayColor. A OverlayColor can
@@ -517,7 +521,7 @@ public:
/**
* The mouse coordinates, in virtual screen coordinates. Only valid
* for mouse events.
- * Virtual screen coordinatest means: the coordinate system of the
+ * Virtual screen coordinates means: the coordinate system of the
* screen area as defined by the most recent call to initSize().
*/
Common::Point mouse;