diff options
author | Chris Apers | 2009-03-01 10:25:33 +0000 |
---|---|---|
committer | Chris Apers | 2009-03-01 10:25:33 +0000 |
commit | 3e56c3a40973d89c0ae6f95d46d2f982becdde1a (patch) | |
tree | 8b9d203bac9216dfd2a528e3b47701caa69629ac /backends/platform/PalmOS/Src/be_base.h | |
parent | fdb9cd9ce2c560486a62d959efdaa8519919e279 (diff) | |
download | scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.tar.gz scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.tar.bz2 scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.zip |
PalmOS Backend updates:
- Removed old clearScreen backend method and keep it for internal use only
- Fixed save path with missing end slash
- Added use of the new audio mixer
- Added new file system factory
- Added missing getOverlayWidth/Height
- Changed color encoding from int16 to uint16 as required by the new ScummVM code
- Fixed ColorMasks use with missing namespace
svn-id: r39028
Diffstat (limited to 'backends/platform/PalmOS/Src/be_base.h')
-rw-r--r-- | backends/platform/PalmOS/Src/be_base.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/backends/platform/PalmOS/Src/be_base.h b/backends/platform/PalmOS/Src/be_base.h index 333b633f05..83b2ec2cbd 100644 --- a/backends/platform/PalmOS/Src/be_base.h +++ b/backends/platform/PalmOS/Src/be_base.h @@ -32,11 +32,13 @@ #include "globals.h" #include "backends/base-backend.h" +#include "common/scummsys.h" #include "common/events.h" #include "graphics/surface.h" +#include "graphics/colormasks.h" namespace Audio { - class Mixer; + class MixerImpl; } namespace Common { @@ -73,7 +75,8 @@ enum { #define computeMsecs(x) ((SysTicksPerSecond() * x) / 1000) -typedef void (*SoundProc)(void *param, byte *buf, int len); +//typedef void (*SoundProc)(void *param, byte *buf, int len); +typedef void (*SoundProc)(byte *buf, uint len); typedef int (*TimerProc)(int interval); typedef struct { @@ -121,6 +124,7 @@ protected: OSystem_PalmBase(); virtual void draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8 color = 0); + virtual void clear_screen() = 0; struct MousePos { int16 x,y,w,h; @@ -130,7 +134,7 @@ protected: SoundType _sound; Common::SaveFileManager *_saveMgr; - Audio::Mixer *_mixerMgr; + Audio::MixerImpl *_mixerMgr; Common::TimerManager *_timerMgr; RGBColorType _currentPalette[256]; @@ -215,7 +219,6 @@ public: void setShakePos(int shakeOffset); virtual void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h) = 0; virtual void updateScreen(); - virtual void clearScreen(); bool showMouse(bool visible); void warpMouse(int x, int y); @@ -227,6 +230,9 @@ public: virtual void grabOverlay(OverlayColor *buf, int pitch) = 0; virtual void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) = 0; + int16 getOverlayWidth() { return getWidth(); } + int16 getOverlayHeight() { return getHeight(); } + void setPalette(const byte *colors, uint start, uint num); void grabPalette(byte *colors, uint start, uint num); virtual Graphics::PixelFormat getOverlayFormat() const { return Graphics::createPixelFormat<565>(); } @@ -252,6 +258,7 @@ public: Common::SaveFileManager *getSavefileManager(); Common::TimerManager *getTimerManager(); + FilesystemFactory *getFilesystemFactory(); virtual Common::SeekableReadStream *createConfigReadStream(); virtual Common::WriteStream *createConfigWriteStream(); |