AVALANCHE: Implement setBackgroundColor().

This commit is contained in:
uruk 2014-01-15 16:26:01 +01:00
parent 78b25b17d1
commit b5b0aa25e0
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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);