diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp index 4b8d667fbfd..ec90e9604f4 100644 --- a/engines/avalanche/graphics.cpp +++ b/engines/avalanche/graphics.cpp @@ -811,9 +811,12 @@ void GraphicManager::setDialogColor(Color bg, Color text) { _talkFontColor = text; } -// Original name background() -void GraphicManager::setBackgroundColor(Color x) { - warning("STUB: setBackgroundColor()"); +/** +* Changes the black color of the palette to the selected one. +* @remarks Originally called 'background' +*/ +void GraphicManager::setBackgroundColor(Color newColor) { + g_system->getPaletteManager()->setPalette(_egaPalette[kEgaPaletteIndex[newColor]], kColorBlack, 1); } } // End of namespace Avalanche diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h index 0de23612a75..e19438f0c0d 100644 --- a/engines/avalanche/graphics.h +++ b/engines/avalanche/graphics.h @@ -107,7 +107,7 @@ public: void refreshScreen(); void loadBackground(Common::File &file); void refreshBackground(); - void setBackgroundColor(Color x); + void setBackgroundColor(Color newColor); void setDialogColor(Color bg, Color text); void zoomOut(int16 x, int16 y);