aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2005-10-12 20:24:30 +0000
committerChris Apers2005-10-12 20:24:30 +0000
commit6330435331a32fba582fc3f7052b07492619cd74 (patch)
tree7a8fc0d7142ace0a08383317e65d272d0b5931c7 /backends
parent3e9419db51b1a59daa785575c8c30fc51c252118 (diff)
downloadscummvm-rg350-6330435331a32fba582fc3f7052b07492619cd74.tar.gz
scummvm-rg350-6330435331a32fba582fc3f7052b07492619cd74.tar.bz2
scummvm-rg350-6330435331a32fba582fc3f7052b07492619cd74.zip
Added battery info
svn-id: r19045
Diffstat (limited to 'backends')
-rwxr-xr-xbackends/PalmOS/Src/be_base.cpp3
-rwxr-xr-xbackends/PalmOS/Src/be_base.h7
-rwxr-xr-xbackends/PalmOS/Src/be_zodiac.h1
3 files changed, 8 insertions, 3 deletions
diff --git a/backends/PalmOS/Src/be_base.cpp b/backends/PalmOS/Src/be_base.cpp
index 89757fe0f5..85308b6097 100755
--- a/backends/PalmOS/Src/be_base.cpp
+++ b/backends/PalmOS/Src/be_base.cpp
@@ -51,6 +51,9 @@ void OSystem_PalmBase::initBackend() {
_lastKeyModifier = kModifierNone;
_lastKeyRepeat = 100;
_useNumPad = false;
+ _showBatLow = false;
+ _batCheckTicks = SysTicksPerSecond() * 15;
+ _batCheckLast = TimGetTicks();
_mouseDataH = NULL;
_mouseDataP = NULL;
diff --git a/backends/PalmOS/Src/be_base.h b/backends/PalmOS/Src/be_base.h
index bcd0ac22df..20e9fefd8b 100755
--- a/backends/PalmOS/Src/be_base.h
+++ b/backends/PalmOS/Src/be_base.h
@@ -145,7 +145,8 @@ protected:
WChar _lastKey;
UInt8 _lastKeyModifier;
UInt32 _lastKeyRepeat;
- Boolean _useNumPad;
+ Boolean _useNumPad, _showBatLow;
+ UInt32 _batCheckTicks, _batCheckLast;
int _samplesPerSec;
@@ -161,7 +162,6 @@ public:
virtual void beginGFXTransaction();
virtual void endGFXTransaction();
- virtual bool grabRawScreen(Graphics::Surface *surf);
virtual int16 getOverlayHeight();
virtual int16 getOverlayWidth();
@@ -182,6 +182,7 @@ public:
int getGraphicsMode() const;
int getDefaultGraphicsMode() const;
virtual bool setGraphicsMode(int mode);
+ virtual bool grabRawScreen(Graphics::Surface *surf) { return false; }
void initSize(uint w, uint h, int overlayScale);
int16 getWidth() { return _screenWidth; }
@@ -203,7 +204,7 @@ public:
virtual void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) = 0;
void setPalette(const byte *colors, uint start, uint num);
- void grabPalette(byte *colors, uint start, uint num) { /* TODO */ };
+ void grabPalette(byte *colors, uint start, uint num);
virtual OverlayColor RGBToColor(uint8 r, uint8 g, uint8 b) = 0;
virtual void colorToRGB(OverlayColor color, uint8 &r, uint8 &g, uint8 &b) = 0;
diff --git a/backends/PalmOS/Src/be_zodiac.h b/backends/PalmOS/Src/be_zodiac.h
index d7ae7d5dd5..f81d5731fd 100755
--- a/backends/PalmOS/Src/be_zodiac.h
+++ b/backends/PalmOS/Src/be_zodiac.h
@@ -73,6 +73,7 @@ public:
void setFeatureState(Feature f, bool enable);
void updateScreen();
+ bool grabRawScreen(Graphics::Surface *surf);
void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, byte keycolor, int cursorTargetScale);