diff options
author | Norbert Lange | 2009-06-19 11:24:06 +0000 |
---|---|---|
committer | Norbert Lange | 2009-06-19 11:24:06 +0000 |
commit | c3596c184b032744d0a6d0d72879dcde854ec93e (patch) | |
tree | fb2cf662f95d6ae1cc99a4ab20304c11c9171b6e /engines | |
parent | 6126341755d37d2238fe0ce5467f629cb32229e7 (diff) | |
download | scummvm-rg350-c3596c184b032744d0a6d0d72879dcde854ec93e.tar.gz scummvm-rg350-c3596c184b032744d0a6d0d72879dcde854ec93e.tar.bz2 scummvm-rg350-c3596c184b032744d0a6d0d72879dcde854ec93e.zip |
Ugly hack for fixing color palette
svn-id: r41672
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/palette.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp index a2cd4a0d4d..8d8511f059 100644 --- a/engines/scumm/palette.cpp +++ b/engines/scumm/palette.cpp @@ -167,7 +167,7 @@ void ScummEngine::setNESPalette() { setPalColor(0x3E,0x00,0x00,0x00); setPalColor(0x3F,0x00,0x00,0x00); } - +/* void ScummEngine::setAmigaPalette() { setPalColor( 0, 0, 0, 0); setPalColor( 1, 0, 0, 187); @@ -185,6 +185,25 @@ void ScummEngine::setAmigaPalette() { setPalColor(13, 255, 0, 255); setPalColor(14, 255, 255, 0); setPalColor(15, 255, 255, 255); +} */ + +void ScummEngine::setAmigaPalette() { + setPalColor( 0, 0, 0, 0); + setPalColor( 1, 0, 0, 170); + setPalColor( 2, 0, 136, 34); + setPalColor( 3, 0, 102, 119); + setPalColor( 4, 187, 102, 102); + setPalColor( 5, 170, 34, 170); + setPalColor( 6, 136, 85, 34); + setPalColor( 7, 119, 119, 119); + setPalColor( 8, 51, 51, 51); + setPalColor( 9, 34, 85, 221); + setPalColor(10, 34, 221, 68); + setPalColor(11, 0, 204, 255); + setPalColor(12, 255, 153, 153); + setPalColor(13, 255, 85, 255); + setPalColor(14, 255, 255, 119); + setPalColor(15, 255, 255, 255); } void ScummEngine::setHercPalette() { @@ -302,6 +321,8 @@ void ScummEngine::setPaletteFromPtr(const byte *ptr, int numcolor) { memcpy(_darkenPalette, _currentPalette, 768); } + setAmigaPalette(); + setDirtyColors(0, numcolor - 1); } |