[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src zodiac_event.cpp,1.2,1.3

Chris Apers chrilith at users.sourceforge.net
Sat Nov 5 03:12:45 CET 2005


Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20854

Modified Files:
	zodiac_event.cpp 
Log Message:
Fixed mouse position

Index: zodiac_event.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/zodiac_event.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- zodiac_event.cpp	18 Oct 2005 01:30:00 -0000	1.2
+++ zodiac_event.cpp	5 Nov 2005 11:12:11 -0000	1.3
@@ -33,10 +33,20 @@
 	if (_stretched) {
 		Int32 w, h;
 
-		h = (_ratio.adjustAspect == kRatioHeight ? _ratio.height : gVars->screenFullHeight);
-		w = (_ratio.adjustAspect == kRatioWidth ? _ratio.width : gVars->screenFullWidth);
-		x = (_screenWidth * x) / w;
-		y = (_screenHeight * y) / h;
+		if (_mode == GFX_NORMAL) {
+
+			h = gVars->screenHeight - MIN_OFFSET * 2;
+			w = gVars->screenWidth;
+			x = (_screenWidth * x) / w;
+			y = (_screenHeight * y) / h;
+
+		} else {
+
+			h = (_ratio.adjustAspect == kRatioHeight ? _ratio.height : gVars->screenFullHeight);
+			w = (_ratio.adjustAspect == kRatioWidth ? _ratio.width : gVars->screenFullWidth);
+			x = (_screenWidth * x) / w;
+			y = (_screenHeight * y) / h;
+		}
 	}
 }
 





More information about the Scummvm-git-logs mailing list