[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src be_base.cpp,1.1,1.2 be_base.h,1.1,1.2 be_zodiac.h,1.1,1.2
Chris Apers
chrilith at users.sourceforge.net
Wed Oct 12 13:25:14 CEST 2005
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31572
Modified Files:
be_base.cpp be_base.h be_zodiac.h
Log Message:
Added battery info
Index: be_base.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_base.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- be_base.cpp 8 Oct 2005 22:18:29 -0000 1.1
+++ be_base.cpp 12 Oct 2005 20:24:30 -0000 1.2
@@ -51,6 +51,9 @@
_lastKeyModifier = kModifierNone;
_lastKeyRepeat = 100;
_useNumPad = false;
+ _showBatLow = false;
+ _batCheckTicks = SysTicksPerSecond() * 15;
+ _batCheckLast = TimGetTicks();
_mouseDataH = NULL;
_mouseDataP = NULL;
Index: be_base.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_base.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- be_base.h 8 Oct 2005 22:18:29 -0000 1.1
+++ be_base.h 12 Oct 2005 20:24:30 -0000 1.2
@@ -145,7 +145,8 @@
WChar _lastKey;
UInt8 _lastKeyModifier;
UInt32 _lastKeyRepeat;
- Boolean _useNumPad;
+ Boolean _useNumPad, _showBatLow;
+ UInt32 _batCheckTicks, _batCheckLast;
int _samplesPerSec;
@@ -161,7 +162,6 @@
virtual void beginGFXTransaction();
virtual void endGFXTransaction();
- virtual bool grabRawScreen(Graphics::Surface *surf);
virtual int16 getOverlayHeight();
virtual int16 getOverlayWidth();
@@ -182,6 +182,7 @@
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 @@
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;
Index: be_zodiac.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/be_zodiac.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- be_zodiac.h 8 Oct 2005 22:18:29 -0000 1.1
+++ be_zodiac.h 12 Oct 2005 20:24:30 -0000 1.2
@@ -73,6 +73,7 @@
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);
More information about the Scummvm-git-logs
mailing list