aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/palm.h
diff options
context:
space:
mode:
authorChris Apers2003-05-06 08:24:21 +0000
committerChris Apers2003-05-06 08:24:21 +0000
commitba7e13262c2140fe55b4e1451036fe490a38fa06 (patch)
tree9f45ab2da4629776a36b2f5ab698668f17edefdc /backends/PalmOS/Src/palm.h
parentc8eb0a9878f22c641c773379b6f67b077c2f9793 (diff)
downloadscummvm-rg350-ba7e13262c2140fe55b4e1451036fe490a38fa06.tar.gz
scummvm-rg350-ba7e13262c2140fe55b4e1451036fe490a38fa06.tar.bz2
scummvm-rg350-ba7e13262c2140fe55b4e1451036fe490a38fa06.zip
Cleanup
svn-id: r7366
Diffstat (limited to 'backends/PalmOS/Src/palm.h')
-rw-r--r--backends/PalmOS/Src/palm.h80
1 files changed, 18 insertions, 62 deletions
diff --git a/backends/PalmOS/Src/palm.h b/backends/PalmOS/Src/palm.h
index ab7e4eb244..37d4b09d08 100644
--- a/backends/PalmOS/Src/palm.h
+++ b/backends/PalmOS/Src/palm.h
@@ -24,30 +24,7 @@
#define PALM_H
#include <SonyClie.h>
-#include "SonySndLib.h"
-#include "vibrate.h"
-#include "globals.h"
#include "system.h"
-/*
-typedef struct {
-
- UInt16 HRrefNum;
- UInt16 volRefNum;
- FileRef logFile;
-
- Boolean screenLocked;
- Boolean vibrator;
-
-} GlobalsDataType;
-*/
-//extern UInt16 gHRrefNum;
-//extern Boolean gVibrator;
-//extern Boolean gFlipping;
-//extern Boolean gScreenLocked;
-//extern GlobalsDataType *gVars;
-
-//Err CheckHRmode();
-
Err HwrDisplayPalette(UInt8 operation, Int16 startIndex,
UInt16 paletteEntries, RGBColorType *tableP)
@@ -157,53 +134,37 @@ public:
static OSystem *create(UInt16 gfx_mode);
UInt8 _sndHandle;
- Boolean _isPlaying;
+ Boolean _isSndPlaying;
protected:
bool _overlay_visible;
private:
- struct {
- Int16 state;
- Int16 position;
- UInt32 time;
- UInt32 wait;
- UInt8 color;
- Char text[100];
- } _msg;
-
- void addMessage(const Char *msg);
- void drawMessage();
- void deleteMessage();
-
typedef void (OSystem_PALMOS::*RendererProc)(void);
RendererProc _renderer_proc;
- UInt8 *_sndData;
+ UInt8 *_sndDataP, *_sndTempP;
void update_screen__flipping();
void update_screen__dbuffer();
void update_screen__direct();
- WinHandle h_palm_screen;
- WinHandle h_palm_offscreen;
-// WinHandle h_palm_tmpscreen;
- MemHandle tmpScreenHandle;
+ WinHandle _screenH;
+ WinHandle _offScreenH;
- byte *palm_screen;
- byte *palm_offscreen;
-// byte *palm_tmpscreen;
- byte *tmpScreen;
+ byte *_screenP;
+ byte *_offScreenP;
+ byte *_tmpScreenP;
- bool _mouse_visible;
- bool _mouse_drawn;
+ bool _mouseVisible;
+ bool _mouseDrawn;
enum {
- MAX_MOUSE_W = 40,
+ MAX_MOUSE_W = 40, // must be 80x80 with 640x480 games
MAX_MOUSE_H = 40
};
- int SCREEN_WIDTH, SCREEN_HEIGHT;
+ int _screenWidth, _screenHeight;
bool _overlaySaved;
struct MousePos {
@@ -211,12 +172,12 @@ private:
};
UInt16 _mode;
- byte *_mouse_data;
- byte *_mouse_backup;
- MousePos _mouse_cur_state;
- MousePos _mouse_old_state;
- int16 _mouse_hotspot_x;
- int16 _mouse_hotspot_y;
+ byte *_mouseDataP;
+ byte *_mouseBackupP;
+ MousePos _mouseCurState;
+ MousePos _mouseOldState;
+ int16 _mouseHotspotX;
+ int16 _mouseHotspotY;
int _current_shake_pos;
int _new_shake_pos;
@@ -271,13 +232,8 @@ private:
eventsEnum lastEvent;
- // sound support
- SndPcmFormatType _snd_format;
- SndPcmOptionsType _snd_options;
-
-
OSystem_PALMOS();
};
-#endif \ No newline at end of file
+#endif