[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src start.cpp,1.9,1.10

Chris Apers chrilith at users.sourceforge.net
Fri Dec 10 07:43:01 CET 2004


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

Modified Files:
	start.cpp 
Log Message:
Fixed virtual silkarea madness

Index: start.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/start.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- start.cpp	9 Nov 2004 11:46:50 -0000	1.9
+++ start.cpp	10 Dec 2004 15:41:50 -0000	1.10
@@ -309,25 +309,17 @@
 			break;
 
 		case sysNotifyDisplayResizedEvent:
-			// FIXME : What the purpose of this code ??? it seems to be the part
-			// that make Zodiac silkarea be mad
-	/*		if (gVars) {
-				static Boolean resized = false;
-				
-				if (gVars->pinUpdate && !resized) {
-		//			resized = true;
-
-					EventType ev;
-					MemSet(&ev, sizeof(EventType), 0);
-					ev.eType = (enum eventsEnum)winDisplayChangedEvent;
-					EvtAddUniqueEventToQueue(&ev, 0, true);
+			// This code allow redifinition of the screen pitch rotating the screen in the frontend
+			if (gVars) {
+				static Boolean resizing = false;
 
+				if (!resizing) {
+					resizing = true;
 					PINGetScreenDimensions();
 					WinScreenGetPitch();
-				} else {
-		//			resized = false;
+					resizing = false;
 				}
-			}*/
+			}
 			break;
 
 		case sonySysNotifyMsaEnforceOpenEvent:
@@ -397,4 +389,4 @@
 UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
 {
 	return ScummVMPalmMain(cmd, cmdPBP, launchFlags);
-}
\ No newline at end of file
+}





More information about the Scummvm-git-logs mailing list