mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
fix a bug that prevented gcc from compiling
correctly added my palette patch (it showed up in the rev-changes but dint got applied fully to the svn tree?) svn-id: r43116
This commit is contained in:
parent
6dbeddab25
commit
4e7b156e10
@ -201,8 +201,13 @@ void ScummEngine::setPaletteFromPtr(const byte *ptr, int numcolor) {
|
||||
assertRange(0, numcolor, 256, "setPaletteFromPtr: numcolor");
|
||||
|
||||
dest = _currentPalette;
|
||||
if ((_game.platform == Common::kPlatformAmiga) && _game.version == 4 && _renderMode != Common::kRenderEGA) {
|
||||
firstIndex = 16;
|
||||
dest += 3 * 16;
|
||||
ptr += 3 * 16;
|
||||
}
|
||||
|
||||
for (i = 0; i < numcolor; i++) {
|
||||
for (i = firstIndex; i < numcolor; i++) {
|
||||
r = *ptr++;
|
||||
g = *ptr++;
|
||||
b = *ptr++;
|
||||
@ -227,7 +232,7 @@ void ScummEngine::setPaletteFromPtr(const byte *ptr, int numcolor) {
|
||||
memcpy(_darkenPalette, _currentPalette, 768);
|
||||
}
|
||||
|
||||
setDirtyColors(0, numcolor - 1);
|
||||
setDirtyColors(firstIndex, numcolor - 1);
|
||||
}
|
||||
|
||||
void ScummEngine::setDirtyColors(int min, int max) {
|
||||
|
@ -205,7 +205,7 @@ private:
|
||||
int32 stopEventTime;
|
||||
} _voiceCtx[kNumVoices];
|
||||
|
||||
void MaxTrax::controlCh(ChannelContext &channel, byte command, byte data);
|
||||
void controlCh(ChannelContext &channel, byte command, byte data);
|
||||
void freePatches();
|
||||
void freeScores();
|
||||
void resetChannel(ChannelContext &chan, bool rightChannel);
|
||||
|
Loading…
Reference in New Issue
Block a user