aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2005-11-05 10:19:28 +0000
committerChris Apers2005-11-05 10:19:28 +0000
commite8057ee9dfe7bcc2166992b8568dc7fc938b5ea0 (patch)
tree50846dd39c2afb572905fbe8c6c77acaf225fc8d /backends
parent1c65e2e4579bba172d8e8dc20ed3b70a52b97ed3 (diff)
downloadscummvm-rg350-e8057ee9dfe7bcc2166992b8568dc7fc938b5ea0.tar.gz
scummvm-rg350-e8057ee9dfe7bcc2166992b8568dc7fc938b5ea0.tar.bz2
scummvm-rg350-e8057ee9dfe7bcc2166992b8568dc7fc938b5ea0.zip
- Added constructor
- Don't make normal stretch mode full screen so that key state can be displayed svn-id: r19436
Diffstat (limited to 'backends')
-rwxr-xr-xbackends/PalmOS/Src/be_zodiac.cpp12
-rwxr-xr-xbackends/PalmOS/Src/be_zodiac.h5
2 files changed, 10 insertions, 7 deletions
diff --git a/backends/PalmOS/Src/be_zodiac.cpp b/backends/PalmOS/Src/be_zodiac.cpp
index 5a4065104a..d492ad8bea 100755
--- a/backends/PalmOS/Src/be_zodiac.cpp
+++ b/backends/PalmOS/Src/be_zodiac.cpp
@@ -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 @@ void OSystem_PalmZodiac::calc_rect(Boolean fullscreen) {
} 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;
diff --git a/backends/PalmOS/Src/be_zodiac.h b/backends/PalmOS/Src/be_zodiac.h
index 68334cef4b..4e122d5871 100755
--- a/backends/PalmOS/Src/be_zodiac.h
+++ b/backends/PalmOS/Src/be_zodiac.h
@@ -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 @@ private:
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);