aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-01-15 16:26:01 +0100
committeruruk2014-01-15 18:00:03 +0100
commitb5b0aa25e00c832289c62526290ca6cc78f8eaae (patch)
treee688bad7aaaaa131d89c56ef6cf188aacf81fee7
parent78b25b17d1eb26841ab93192aea2ff1169ff9002 (diff)
downloadscummvm-rg350-b5b0aa25e00c832289c62526290ca6cc78f8eaae.tar.gz
scummvm-rg350-b5b0aa25e00c832289c62526290ca6cc78f8eaae.tar.bz2
scummvm-rg350-b5b0aa25e00c832289c62526290ca6cc78f8eaae.zip
AVALANCHE: Implement setBackgroundColor().
-rw-r--r--engines/avalanche/graphics.cpp9
-rw-r--r--engines/avalanche/graphics.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 4b8d667fbf..ec90e9604f 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 0de23612a7..e19438f0c0 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);