Skip to content

Commit

Permalink
AVALANCHE: Implement setBackgroundColor().
Browse files Browse the repository at this point in the history
  • Loading branch information
uruk committed Jan 15, 2014
1 parent 78b25b1 commit b5b0aa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions engines/avalanche/graphics.cpp
Expand Up @@ -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
2 changes: 1 addition & 1 deletion engines/avalanche/graphics.h
Expand Up @@ -107,7 +107,7 @@ class GraphicManager {
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);
Expand Down

0 comments on commit b5b0aa2

Please sign in to comment.