[Scummvm-cvs-logs] CVS: scummvm/common system.h,1.88,1.89

Eugene Sandulenko sev at users.sourceforge.net
Wed Mar 9 15:08:24 CET 2005


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8691/common

Modified Files:
	system.h 
Log Message:
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.


Index: system.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/system.h,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- system.h	20 Feb 2005 02:04:45 -0000	1.88
+++ system.h	9 Mar 2005 23:07:30 -0000	1.89
@@ -216,7 +216,7 @@
 	 * @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 @@
 	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 @@
 		/**
 		 * 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;





More information about the Scummvm-git-logs mailing list