[Scummvm-cvs-logs] SF.net SVN: scummvm: [26705] scummvm/trunk/backends/platform/PalmOS/Src

chrilith at users.sourceforge.net chrilith at users.sourceforge.net
Tue May 1 12:22:36 CEST 2007


Revision: 26705
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26705&view=rev
Author:   chrilith
Date:     2007-05-01 03:22:35 -0700 (Tue, 01 May 2007)

Log Message:
-----------
Added basic rotation detector

Modified Paths:
--------------
    scummvm/trunk/backends/platform/PalmOS/Src/launcher/app.cpp
    scummvm/trunk/backends/platform/PalmOS/Src/stuffs.h

Modified: scummvm/trunk/backends/platform/PalmOS/Src/launcher/app.cpp
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/launcher/app.cpp	2007-05-01 10:20:48 UTC (rev 26704)
+++ scummvm/trunk/backends/platform/PalmOS/Src/launcher/app.cpp	2007-05-01 10:22:35 UTC (rev 26705)
@@ -1,7 +1,7 @@
 /* ScummVM - Scumm Interpreter
  * Copyright (C) 2001  Ludvig Strigeus
- * Copyright (C) 2001-2006 The ScummVM project
- * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend
+ * Copyright (C) 2001-2007 The ScummVM project
+ * Copyright (C) 2002-2007 Chris Apers - PalmOS Backend
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -24,6 +24,7 @@
 
 #include <PalmOS.h>
 #include <SonyClie.h>
+#include <SysGlue.h>
 
 #include "StarterRsc.h"
 #include "palmdefs.h"
@@ -172,6 +173,7 @@
 	OPTIONS_RST(kOptCollapsible);
 	OPTIONS_RST(kOptModeWide);
 	OPTIONS_RST(kOptModeLandscape);
+	OPTIONS_RST(kOptModeRotatable);
 
 	// we are on a sony device
 	if (OPTIONS_TST(kOptDeviceClie)) {
@@ -186,6 +188,8 @@
 			OPTIONS_SET(kOptCollapsible);
 			OPTIONS_SET(kOptModeWide);
 			OPTIONS_SET((mode == PALM_LANDSCAPE) ? kOptModeLandscape : kOptNone);
+			// TODO: doesn't work with Sony
+			OPTIONS_SET(SysGlueTrapExists(pinSysSetOrientation) ? kOptModeRotatable :kOptNone);
 		}
 	}
 

Modified: scummvm/trunk/backends/platform/PalmOS/Src/stuffs.h
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/stuffs.h	2007-05-01 10:20:48 UTC (rev 26704)
+++ scummvm/trunk/backends/platform/PalmOS/Src/stuffs.h	2007-05-01 10:22:35 UTC (rev 26705)
@@ -19,6 +19,7 @@
 	kOptSonyPa1LibAPI		=	1 <<	0x0D,
 	kOptGoLcdAPI			=	1 <<	0x0E,
 	kOptLightspeedAPI		=	1 <<	0x0F,
+	kOptModeRotatable		=	1 <<	0x10,
 
 	kOptDeviceProcX86		=	1 <<	0x1F	// DEBUG only
 };


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list