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

Chris Apers chrilith at users.sourceforge.net
Sat Nov 5 02:20:02 CET 2005


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

Modified Files:
	be_zodiac.cpp be_zodiac.h 
Log Message:
- Added constructor
- Don't make normal stretch mode full screen so that key state can be displayed

Index: be_zodiac.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_zodiac.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- be_zodiac.cpp	18 Oct 2005 01:30:00 -0000	1.2
+++ be_zodiac.cpp	5 Nov 2005 10:19:28 -0000	1.3
@@ -23,17 +23,15 @@
 
 #include "be_zodiac.h"
 
-void OSystem_PalmZodiac::int_initBackend() {
-	_sound.active = false;
-
-
+OSystem_PalmZodiac::OSystem_PalmZodiac() : OSystem_PalmOS5() {
 	_gfxH = NULL;
 	_overlayP = NULL;
 	_palmScreenP = NULL;
 	_tmpScreenP = NULL;
 	_stretched = false;
-	_tmpScreenP = NULL;
+}
 
+void OSystem_PalmZodiac::int_initBackend() {
 	_keyMouse.bitUp		= keyBitRockerUp;
 	_keyMouse.bitDown	= keyBitRockerDown;
 	_keyMouse.bitLeft	= keyBitRockerLeft;
@@ -65,10 +63,10 @@
 
 	} else {
 		w = gVars->screenWidth;
-		h = gVars->screenHeight;
+		h = gVars->screenHeight - MIN_OFFSET * 2;
 
 		_screenOffset.x = 0;
-		_screenOffset.y = 0;		
+		_screenOffset.y = MIN_OFFSET;		
 	}
 
 	_dstRect.x = _screenOffset.x;

Index: be_zodiac.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_zodiac.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- be_zodiac.h	18 Oct 2005 01:30:00 -0000	1.3
+++ be_zodiac.h	5 Nov 2005 10:19:28 -0000	1.4
@@ -27,6 +27,8 @@
 #include "be_os5.h"
 #include <tapwave.h>
 
+#define MIN_OFFSET	20
+
 class OSystem_PalmZodiac : public OSystem_PalmOS5 {
 private:
 	enum {
@@ -68,9 +70,12 @@
 	void draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8 color = 0);
 
 public:
+	OSystem_PalmZodiac();
+
 	static OSystem *create();
 	
 	void setFeatureState(Feature f, bool enable);
+	int getDefaultGraphicsMode() const;
 
 	void updateScreen();
 	bool grabRawScreen(Graphics::Surface *surf);





More information about the Scummvm-git-logs mailing list