[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src app.cpp,1.5,1.6

Chris Apers chrilith at users.sourceforge.net
Sun Sep 12 06:35:04 CEST 2004


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

Modified Files:
	app.cpp 
Log Message:
Cleanup

Index: app.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/app.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- app.cpp	25 May 2004 14:26:22 -0000	1.5
+++ app.cpp	12 Sep 2004 13:34:11 -0000	1.6
@@ -6,6 +6,7 @@
 #include "StarterRsc.h"
 #include "start.h"
 #include "globals.h"
+#include "rumble.h"
 
 #include "mathlib.h"
 #include "formCards.h"
@@ -13,7 +14,8 @@
 #include "extend.h"
 
 #ifndef DISABLE_TAPWAVE
-// Tapwave code will come here
+#define __TWKEYS_H__
+#include "tapwave.h"
 #endif
 
 #define kOS5Version		sysMakeROMVersion(5,0,0,sysROMStageRelease,0)
@@ -63,7 +65,7 @@
 
 		width = hrWidth;
 		height= hrHeight;
-		depth = 8;
+		depth = (OPTIONS_TST(kOptMode16Bit) && OPTIONS_TST(kOptDeviceOS5)) ? 16 : 8;
 		color = true;
 
 		if (gVars->HRrefNum != sysInvalidRefNum) {
@@ -186,6 +188,9 @@
 void WinScreenGetPitch() {
 	if (OPTIONS_TST(kOptModeHiDensity)) {
 		WinScreenGetAttribute(winScreenRowBytes, &(gVars->screenPitch));
+		if (OPTIONS_TST(kOptMode16Bit))
+			gVars->screenPitch /= 2;	// this value is used only in-game and in 8bit mode, so if we are in 16Bit 8bit = 16bit/2
+		
 		// FIXME : hack for TT3 simulator (and real ?) return 28 on landscape mode
 		if (gVars->screenPitch < gVars->screenFullWidth)
 			gVars->screenPitch = gVars->screenFullWidth;
@@ -211,6 +216,7 @@
 			OPTIONS_RST(kOptModeWide);
 			OPTIONS_RST(kOptModeLandscape);
 
+			PINSetInputTriggerState(pinInputTriggerEnabled);
 			PINSetInputAreaState(pinInputAreaClosed);
 			StatHide();
 
@@ -227,6 +233,7 @@
 			
 			StatShow();
 			PINSetInputAreaState(pinInputAreaOpen);
+			PINSetInputTriggerState(pinInputTriggerDisabled);
 		}
 	}
 
@@ -353,7 +360,10 @@
 	gVars->options = kOptNone;
 
 #ifndef DISABLE_TAPWAVE
-// Tapwave code will come here
+	// Tapwave Zodiac libs ?
+	if (!FtrGet(sysFileCSystem, sysFtrNumOEMCompanyID, &manufacturer))
+		if (manufacturer == twCreatorID)
+			OPTIONS_SET(kOptDeviceZodiac);
 #endif
 
 	// Hi-Density present ?
@@ -406,20 +416,11 @@
 		gPrefs->card.volRefNum = sysInvalidRefNum;
 
 		gPrefs->autoOff = true;
-		gPrefs->vibrator = CheckVibratorExists();
+		gPrefs->vibrator = RumbleExists();
 		gPrefs->debug = false;
 
 		gPrefs->stdPalette = OPTIONS_TST(kOptDeviceOS5);
 		
-		gPrefs->volume.master = 192;
-		gPrefs->volume.music = 192;
-		gPrefs->volume.sfx = 192;
-		gPrefs->volume.speech = 192;
-		
-		gPrefs->sound.tempo = 100;
-		gPrefs->sound.defaultTrackLength = 10;
-		gPrefs->sound.firstTrack = 1;
-		
 	} else {
 		PrefGetAppPreferences(appFileCreator, appPrefID, gPrefs, &dataSize, true);
 	}





More information about the Scummvm-git-logs mailing list