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

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


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

Modified Files:
	be_base.cpp be_base.h be_os5.cpp be_os5.h 
Log Message:
Added constructor

Index: be_base.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_base.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- be_base.cpp	18 Oct 2005 01:30:00 -0000	1.3
+++ be_base.cpp	5 Nov 2005 10:15:41 -0000	1.4
@@ -25,7 +25,7 @@
 #include "common/config-file.h"
 #include "common/config-manager.h"
 
-void OSystem_PalmBase::initBackend() {
+OSystem_PalmBase::OSystem_PalmBase() {
 	_overlayVisible = false;
 
 	_current_shake_pos = 0;
@@ -62,7 +62,9 @@
 	MemSet(&_keyMouse, sizeof(_keyMouse), 0);
 	MemSet(&_mouseCurState, sizeof(_mouseCurState), 0);
 	MemSet(&_mouseOldState, sizeof(_mouseOldState), 0);
-	
+}
+
+void OSystem_PalmBase::initBackend() {	
 	int_initBackend();
 	_keyMouseMask = (_keyMouse.bitUp | _keyMouse.bitDown | _keyMouse.bitLeft | _keyMouse.bitRight | _keyMouse.bitButLeft);
 }

Index: be_base.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_base.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- be_base.h	18 Oct 2005 01:30:00 -0000	1.3
+++ be_base.h	5 Nov 2005 10:15:41 -0000	1.4
@@ -94,7 +94,7 @@
 		kKeyAny				= 1 << 31
 	};
 	enum {
-		MAX_MOUSE_W = 40,	// should be 80x80 with 640x480 games ?
+		MAX_MOUSE_W = 40,
 		MAX_MOUSE_H = 40
 	};
 	struct MousePos {
@@ -151,6 +151,7 @@
 	int _samplesPerSec;
 
 public:
+	OSystem_PalmBase();
 	void initBackend();
 
 /*
@@ -180,7 +181,7 @@
 */
 	const GraphicsMode *getSupportedGraphicsModes() const;
 	int getGraphicsMode() const;
-	int getDefaultGraphicsMode() const;
+	virtual int getDefaultGraphicsMode() const;
 	virtual bool setGraphicsMode(int mode);
 	virtual bool grabRawScreen(Graphics::Surface *surf) { return false; }
 

Index: be_os5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_os5.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- be_os5.cpp	18 Oct 2005 01:30:00 -0000	1.2
+++ be_os5.cpp	5 Nov 2005 10:15:41 -0000	1.3
@@ -23,6 +23,10 @@
 
 #include "be_os5.h"
 
+OSystem_PalmOS5::OSystem_PalmOS5() : OSystem_PalmBase() {
+	_sound.active = false;
+}
+
 void OSystem_PalmOS5::int_initBackend() {
 }
 

Index: be_os5.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_os5.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- be_os5.h	18 Oct 2005 01:30:00 -0000	1.2
+++ be_os5.h	5 Nov 2005 10:15:41 -0000	1.3
@@ -56,6 +56,7 @@
 	SoundDataType _sound;
 
 public:
+	OSystem_PalmOS5();
 	static OSystem *create();
 
 	void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h);





More information about the Scummvm-git-logs mailing list