[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src palm.cpp,1.27,1.28 palm.h,1.20,1.21
Chris Apers
chrilith at users.sourceforge.net
Thu Feb 5 06:29:02 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2 anims.cpp,1.53,1.54 build_display.cpp,1.53,1.54 console.cpp,1.39,1.40 controls.cpp,1.61,1.62 debug.cpp,1.34,1.35 events.cpp,1.25,1.26 function.cpp,1.55,1.56 icons.cpp,1.32,1.33 interpreter.cpp,1.39,1.40 layers.cpp,1.24,1.25 logic.cpp,1.40,1.41 maketext.cpp,1.37,1.38 mem_view.cpp,1.25,1.26 memory.cpp,1.22,1.23 mouse.cpp,1.52,1.53 protocol.cpp,1.24,1.25 resman.cpp,1.86,1.87 router.cpp,1.39,1.40 save_rest.cpp,1.47,1.48 scroll.cpp,1.16,1.17 sound.cpp,1.39,1.40 speech.cpp,1.57,1.58 startup.cpp,1.38,1.39 sword2.cpp,1.103,1.104 sword2.h,1.49,1.50 sync.cpp,1.17,1.18 walker.cpp,1.34,1.35
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver _mouse.cpp,1.31,1.32 animation.cpp,1.15,1.16 animation.h,1.15,1.16 d_draw.cpp,1.59,1.60 d_sound.cpp,1.105,1.106 menu.cpp,1.24,1.25 palette.cpp,1.28,1.29 rdwin.cpp,1.41,1.42 render.cpp,1.54,1.55 sprite.cpp,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24201
Modified Files:
palm.cpp palm.h
Log Message:
More wide display support, 5way navigator support, prepare zodiac, arm and sound support, and many more stuffs...
Index: palm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/palm.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- palm.cpp 6 Jan 2004 12:45:25 -0000 1.27
+++ palm.cpp 5 Feb 2004 14:25:34 -0000 1.28
@@ -19,21 +19,26 @@
* $Header$
*
*/
+#include "stdafx.h"
#include "backends/intern.h"
#include "scumm.h"
#include "common/scaler.h"
+#include "common/config-manager.h"
+
+#include "shared.h"
[...1435 lines suppressed...]
- }
if (w <= 0 || h <= 0)
return;
- undraw_mouse();
+ /* FIXME: undraw mouse only if the draw rect intersects with the mouse rect */
+ if (_mouseDrawn) {
+/* RectangleType mouse = {_mouseCurState.x, _mouseCurState.y, _mouseCurState.w, _mouseCurState.h};
+ RectangleType copy = {x, y, w, h};
+ RectangleType result;
+
+ RctGetIntersection(&mouse, ©, &result);
+
+ if (result.extent.x !=0 && result.extent.y !=0)*/
+ undraw_mouse();
+ }
if (MemPtrDataStorage(_tmpScreenP)) {
byte *dst = _tmpScreenP;
Index: palm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/palm.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- palm.h 6 Jan 2004 12:45:25 -0000 1.20
+++ palm.h 5 Feb 2004 14:25:34 -0000 1.21
@@ -27,19 +27,23 @@
#include "common/system.h"
#include "cdaudio.h"
+#include "PNOLoader.h"
+
+
Err HwrDisplayPalette(UInt8 operation, Int16 startIndex,
UInt16 paletteEntries, RGBColorType *tableP)
SYS_TRAP(sysTrapHwrDisplayPalette);
typedef struct {
- bool active;
OSystem::SoundProc proc;
void *param;
OSystem::SoundFormat format;
+
SndStreamRef sndRefNum;
+ bool active, useHandler;
+ void *dataP;
} SoundDataType;
-//-- 02-12-17 --////////////////////////////////////////////////////////////////
class OSystem_PALMOS : public OSystem {
public:
// Set colors of the palette
@@ -88,7 +92,7 @@
// Returns true if an event was retrieved.
bool poll_event(Event *event);
- void SimulateArrowKeys(Event *event, Int8 iHoriz, Int8 iVert);
+ void SimulateArrowKeys(Event *event, Int8 iHoriz, Int8 iVert, Boolean repeat = false);
/** @name Sound */
//@{
@@ -153,10 +157,11 @@
// Savefile management
SaveFileManager *get_savefile_manager();
- static OSystem *create(UInt16 gfx_mode, bool full_screen);
+ static OSystem *create(UInt16 gfx_mode);
- UInt8 _sndHandle;
- Boolean _isSndPlaying;
+// UInt8 _sndHandle;
+// Boolean _isSndPlaying;
+// UInt8 *convP;
protected:
byte *_tmpScreenP, *_tmpBackupP;
@@ -166,35 +171,35 @@
typedef void (OSystem_PALMOS::*RendererProc)();
RendererProc _renderer_proc;
- UInt8 *_sndDataP, *_sndTempP;
-
void update_screen__flipping();
- void update_screen__dbuffer();
+ void update_screen__buffered();
void update_screen__direct();
- void update_screen__wide();
+ void update_screen__wide_portrait();
+ void update_screen__wide_landscape();
+ void update_screen__wide_zodiac();
+
+ void *ptrP[5]; // various ptr
WinHandle _screenH;
WinHandle _offScreenH;
- Boolean _fullscreen;
+ Boolean _fullscreen, _adjustAspectRatio;
struct {
Coord x;
Coord y;
UInt32 addr;
} _screenOffset;
-public:
byte *_screenP;
+ byte *_offScreenP;
int _offScreenPitch;
int _screenPitch;
-
-private:
- byte *_offScreenP;
+
bool _mouseVisible;
bool _mouseDrawn;
enum {
- MAX_MOUSE_W = 40, // must be 80x80 with 640x480 games
+ MAX_MOUSE_W = 40, // must be 80x80 with 640x480 games ?
MAX_MOUSE_H = 40
};
@@ -229,18 +234,44 @@
RGBColorType *_currentPalette;
uint _paletteDirtyStart, _paletteDirtyEnd;
- void check_sound();
void draw_mouse();
void undraw_mouse();
+
+ void sound_handler();
+ void timer_handler(UInt32 current_msecs);
+
+ void getCoordinates(EventPtr event, Coord *x, Coord *y);
+ void draw1BitGfx(UInt16 id, UInt32 x, UInt32 y, Boolean clear);
void load_gfx_mode();
void unload_gfx_mode();
static void autosave();
+ // ARM
+ struct {
+ PnoDescriptor pnoDesc;
+ MemPtr pnoPtr;
+ } _arm;
+
CDAudio *_cdPlayer;
// PALM spec
+ enum {
+ kLastKeyNone = 0,
+ kLastKeyMouseUp = 1 << 0,
+ kLastKeyMouseDown = 1 << 1,
+ kLastKeyMouseLeft = 1 << 2,
+ kLastKeyMouseRight = 1 << 3,
+ kLastKeyMouseButLeft = 1 << 4,
+ kLastKeyMouseButRight = 1 << 5,
+
+ kLastKeyCalc = 1 << 30,
+ kLastKeyAny = 1 << 31
+ };
+
+
+
Int32 _lastKeyPressed;
UInt32 _lastKeyRepeat;
UInt8 _lastKeyModifier;
@@ -251,7 +282,7 @@
eventsEnum _lastEvent;
OSystem_PALMOS();
-
+ void init_intern(UInt16 gfx_mode);
};
#endif
\ No newline at end of file
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2 anims.cpp,1.53,1.54 build_display.cpp,1.53,1.54 console.cpp,1.39,1.40 controls.cpp,1.61,1.62 debug.cpp,1.34,1.35 events.cpp,1.25,1.26 function.cpp,1.55,1.56 icons.cpp,1.32,1.33 interpreter.cpp,1.39,1.40 layers.cpp,1.24,1.25 logic.cpp,1.40,1.41 maketext.cpp,1.37,1.38 mem_view.cpp,1.25,1.26 memory.cpp,1.22,1.23 mouse.cpp,1.52,1.53 protocol.cpp,1.24,1.25 resman.cpp,1.86,1.87 router.cpp,1.39,1.40 save_rest.cpp,1.47,1.48 scroll.cpp,1.16,1.17 sound.cpp,1.39,1.40 speech.cpp,1.57,1.58 startup.cpp,1.38,1.39 sword2.cpp,1.103,1.104 sword2.h,1.49,1.50 sync.cpp,1.17,1.18 walker.cpp,1.34,1.35
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver _mouse.cpp,1.31,1.32 animation.cpp,1.15,1.16 animation.h,1.15,1.16 d_draw.cpp,1.59,1.60 d_sound.cpp,1.105,1.106 menu.cpp,1.24,1.25 palette.cpp,1.28,1.29 rdwin.cpp,1.41,1.42 render.cpp,1.54,1.55 sprite.cpp,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list