diff options
author | Chris Apers | 2005-11-05 10:15:41 +0000 |
---|---|---|
committer | Chris Apers | 2005-11-05 10:15:41 +0000 |
commit | 1c65e2e4579bba172d8e8dc20ed3b70a52b97ed3 (patch) | |
tree | bdcad9f8043e30c63db4b24a0ffe50858ff18fb9 | |
parent | 1f8ffb5df72032fda624c688231acdf2a8a61a45 (diff) | |
download | scummvm-rg350-1c65e2e4579bba172d8e8dc20ed3b70a52b97ed3.tar.gz scummvm-rg350-1c65e2e4579bba172d8e8dc20ed3b70a52b97ed3.tar.bz2 scummvm-rg350-1c65e2e4579bba172d8e8dc20ed3b70a52b97ed3.zip |
Added constructor
svn-id: r19435
-rwxr-xr-x | backends/PalmOS/Src/be_base.cpp | 6 | ||||
-rwxr-xr-x | backends/PalmOS/Src/be_base.h | 5 | ||||
-rwxr-xr-x | backends/PalmOS/Src/be_os5.cpp | 4 | ||||
-rwxr-xr-x | backends/PalmOS/Src/be_os5.h | 1 |
4 files changed, 12 insertions, 4 deletions
diff --git a/backends/PalmOS/Src/be_base.cpp b/backends/PalmOS/Src/be_base.cpp index cb561266b2..6efc26d7ec 100755 --- a/backends/PalmOS/Src/be_base.cpp +++ b/backends/PalmOS/Src/be_base.cpp @@ -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 @@ void OSystem_PalmBase::initBackend() { 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); } diff --git a/backends/PalmOS/Src/be_base.h b/backends/PalmOS/Src/be_base.h index 57d9689e32..e11e0aa445 100755 --- a/backends/PalmOS/Src/be_base.h +++ b/backends/PalmOS/Src/be_base.h @@ -94,7 +94,7 @@ protected: 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 @@ protected: int _samplesPerSec; public: + OSystem_PalmBase(); void initBackend(); /* @@ -180,7 +181,7 @@ public: */ 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; } diff --git a/backends/PalmOS/Src/be_os5.cpp b/backends/PalmOS/Src/be_os5.cpp index 43c612b4e5..c2432883d1 100755 --- a/backends/PalmOS/Src/be_os5.cpp +++ b/backends/PalmOS/Src/be_os5.cpp @@ -23,6 +23,10 @@ #include "be_os5.h" +OSystem_PalmOS5::OSystem_PalmOS5() : OSystem_PalmBase() { + _sound.active = false; +} + void OSystem_PalmOS5::int_initBackend() { } diff --git a/backends/PalmOS/Src/be_os5.h b/backends/PalmOS/Src/be_os5.h index 9a48ffa749..57ef9c1528 100755 --- a/backends/PalmOS/Src/be_os5.h +++ b/backends/PalmOS/Src/be_os5.h @@ -56,6 +56,7 @@ protected: SoundDataType _sound; public: + OSystem_PalmOS5(); static OSystem *create(); void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h); |