From 029154ab3ae1ba1954b3f3dc2962265f1878690a Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 24 Jan 2010 20:38:56 +0000 Subject: SCI: fixing amiga mapping for colors 0 and 15, those are hardcoded like everywhere else svn-id: r47521 --- engines/sci/graphics/palette.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp index 5aafdd2d09..f60892fb70 100644 --- a/engines/sci/graphics/palette.cpp +++ b/engines/sci/graphics/palette.cpp @@ -53,6 +53,8 @@ SciPalette::SciPalette(ResourceManager *resMan, Screen *screen, bool autoSetPale _sysPalette.colors[255].g = 255; _sysPalette.colors[255].b = 255; + memset(&_amigaEGAtable, 0, sizeof(_amigaEGAtable)); + if (autoSetPalette) { if (_resMan->getViewType() == kViewEga) setEGA(); @@ -152,9 +154,10 @@ bool SciPalette::setAmiga() { setOnScreen(); // Create EGA to amiga table - for (curColor = 0; curColor < 16; curColor++) { + for (curColor = 1; curColor < 15; curColor++) { _amigaEGAtable[curColor] = matchColor(&_sysPalette, EGApalette[curColor][0], EGApalette[curColor][1], EGApalette[curColor][2]); } + _amigaEGAtable[15] = _screen->getColorWhite(); return true; } return false; -- cgit v1.2.3