Fix PocketSCUMM. Palette is wrong tho. BBrox is a genius.
svn-id: r4009
This commit is contained in:
parent
a7becf8ae1
commit
82192a3172
6 changed files with 428 additions and 634 deletions
6
akos.h
6
akos.h
|
@ -23,9 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
#if !defined(__GNUC__)
|
#if !defined(__GNUC__)
|
||||||
|
|
||||||
#pragma START_PACK_STRUCTS
|
#pragma START_PACK_STRUCTS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,6 +47,10 @@ struct AkosCI {
|
||||||
int16 move_x, move_y;
|
int16 move_x, move_y;
|
||||||
} GCC_PACK;
|
} GCC_PACK;
|
||||||
|
|
||||||
|
#if !defined(__GNUC__)
|
||||||
|
#pragma END_PACK_STRUCTS
|
||||||
|
#endif
|
||||||
|
|
||||||
struct AkosRenderer {
|
struct AkosRenderer {
|
||||||
CostumeData *cd;
|
CostumeData *cd;
|
||||||
int x,y; /* where to draw costume */
|
int x,y; /* where to draw costume */
|
||||||
|
|
|
@ -427,8 +427,10 @@ OSystem *GameDetector::createSystem() {
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef USE_NULL_DRIVER
|
||||||
case GD_NULL:
|
case GD_NULL:
|
||||||
return OSystem_NULL_create();
|
return OSystem_NULL_create();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
scumm.h
6
scumm.h
|
@ -938,7 +938,11 @@ public:
|
||||||
void setVerbObject(uint room, uint object, uint verb);
|
void setVerbObject(uint room, uint object, uint verb);
|
||||||
|
|
||||||
/* Should be in Sound class */
|
/* Should be in Sound class */
|
||||||
|
union {
|
||||||
SoundMixer _mixer[1];
|
SoundMixer _mixer[1];
|
||||||
|
uint32 xxxx_1;
|
||||||
|
};
|
||||||
|
//SoundMixer _mixer[1];
|
||||||
|
|
||||||
// MixerChannel _mixer_channel[NUM_MIXER];
|
// MixerChannel _mixer_channel[NUM_MIXER];
|
||||||
byte _sfxMode;
|
byte _sfxMode;
|
||||||
|
@ -1134,6 +1138,7 @@ public:
|
||||||
void initVirtScreen(int slot, int top, int height, bool twobufs, bool fourextra);
|
void initVirtScreen(int slot, int top, int height, bool twobufs, bool fourextra);
|
||||||
void initBGBuffers();
|
void initBGBuffers();
|
||||||
void initCycl(byte *ptr); // Color cycle
|
void initCycl(byte *ptr); // Color cycle
|
||||||
|
|
||||||
void createSpecialPalette(int16 a, int16 b, int16 c, int16 d, int16 e, int16 colorMin, int16 colorMax);
|
void createSpecialPalette(int16 a, int16 b, int16 c, int16 d, int16 e, int16 colorMin, int16 colorMax);
|
||||||
|
|
||||||
void drawObject(int obj, int arg);
|
void drawObject(int obj, int arg);
|
||||||
|
@ -1224,6 +1229,7 @@ public:
|
||||||
byte *_shadowPalette;
|
byte *_shadowPalette;
|
||||||
int _shadowPaletteSize;
|
int _shadowPaletteSize;
|
||||||
byte _currentPalette[0x300];
|
byte _currentPalette[0x300];
|
||||||
|
|
||||||
byte _proc_special_palette[256];
|
byte _proc_special_palette[256];
|
||||||
int _palDirtyMin, _palDirtyMax;
|
int _palDirtyMin, _palDirtyMax;
|
||||||
byte _bkColor;
|
byte _bkColor;
|
||||||
|
|
|
@ -66,6 +66,7 @@ void SoundMixer::on_generate_samples(void *s, byte *samples, int len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SoundMixer::bind_to_system(OSystem *syst) {
|
bool SoundMixer::bind_to_system(OSystem *syst) {
|
||||||
|
//_volume_table = (int16*)malloc(256 * sizeof(int16));
|
||||||
_volume_table = (int16*)calloc(256*sizeof(int16),1);
|
_volume_table = (int16*)calloc(256*sizeof(int16),1);
|
||||||
|
|
||||||
uint rate = (uint)syst->property(OSystem::PROP_GET_SAMPLE_RATE, 0);
|
uint rate = (uint)syst->property(OSystem::PROP_GET_SAMPLE_RATE, 0);
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef uint32 PlayingSoundHandle;
|
typedef uint32 PlayingSoundHandle;
|
||||||
|
|
||||||
class SoundMixer {
|
class SoundMixer {
|
||||||
private:
|
private:
|
||||||
class Channel {
|
class Channel {
|
||||||
|
@ -190,5 +189,4 @@ struct MixerChannel { /* Mixer Channel */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* _mixer_h_included */
|
#endif /* _mixer_h_included */
|
||||||
|
|
1033
wince/pocketpc.cpp
1033
wince/pocketpc.cpp
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue