diff options
-rw-r--r-- | saga/gfx.cpp | 12 | ||||
-rw-r--r-- | saga/interface.cpp | 5 |
2 files changed, 12 insertions, 5 deletions
diff --git a/saga/gfx.cpp b/saga/gfx.cpp index afc1a75ea0..8f3070fe50 100644 --- a/saga/gfx.cpp +++ b/saga/gfx.cpp @@ -174,6 +174,10 @@ void Gfx::setPalette(PalEntry *pal) { ppal[3] = 0; } + // Make 256th color black. See bug #1256368 + if (_vm->getFeatures() & GF_MAC_RESOURCES) + memset(&_currentPal[255 * 4], 0, 4); + _system->setPalette(_currentPal, 0, PAL_ENTRIES); } @@ -233,6 +237,10 @@ void Gfx::palToBlack(PalEntry *src_pal, double percent) { ppal[3] = 0; } + // Make 256th color black. See bug #1256368 + if (_vm->getFeatures() & GF_MAC_RESOURCES) + memset(&_currentPal[255 * 4], 0, 4); + _system->setPalette(_currentPal, 0, PAL_ENTRIES); } @@ -303,6 +311,10 @@ void Gfx::blackToPal(PalEntry *src_pal, double percent) { } } + // Make 256th color black. See bug #1256368 + if (_vm->getFeatures() & GF_MAC_RESOURCES) + memset(&_currentPal[255 * 4], 0, 4); + _system->setPalette(_currentPal, 0, PAL_ENTRIES); } diff --git a/saga/interface.cpp b/saga/interface.cpp index 540b5aac5a..60f7ea1f2d 100644 --- a/saga/interface.cpp +++ b/saga/interface.cpp @@ -579,11 +579,6 @@ void Interface::draw() { drawVerbPanel(backBuffer, _verbTypeToPanelButton[i]); } } - - // Mac panel background has one line skipped, so overdraw it - if (_vm->getFeatures() & GF_MAC_RESOURCES) { - backBuffer->drawLine(51, 151, 165, 151, 0); - } } else if (_panelMode == kPanelConverse) { _conversePanel.getRect(rect); backBuffer->blit(rect, _conversePanel.image); |