aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/graphics.cpp
diff options
context:
space:
mode:
authorurukgit2013-10-14 21:59:06 +0200
committerurukgit2013-10-14 21:59:06 +0200
commitcb5424376399e8f79a18800446916f601e02721c (patch)
treedcb85792c65462d66a92af887ea351d56a8c14dd /engines/avalanche/graphics.cpp
parent609846ab8aeaeef533d867f2740143d6ffbdbed4 (diff)
downloadscummvm-rg350-cb5424376399e8f79a18800446916f601e02721c.tar.gz
scummvm-rg350-cb5424376399e8f79a18800446916f601e02721c.tar.bz2
scummvm-rg350-cb5424376399e8f79a18800446916f601e02721c.zip
AVALANCHE: Remove GraphicManager::fleshColors(), move everything from it to GraphicManager::init().
Diffstat (limited to 'engines/avalanche/graphics.cpp')
-rw-r--r--engines/avalanche/graphics.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 0414bf5333..bedb7f5506 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -77,6 +77,10 @@ void GraphicManager::init() {
for (int i = 0; i < 16; i++)
g_system->getPaletteManager()->setPalette(_egaPalette[kEgaPaletteIndex[i]], i, 1);
+ // Set the "flesh colors":
+ g_system->getPaletteManager()->setPalette(_egaPalette[39], 13, 1);
+ g_system->getPaletteManager()->setPalette(_egaPalette[28], 5, 1);
+
_surface.create(kScreenWidth, kScreenHeight, Graphics::PixelFormat::createFormatCLUT8());
_magics.create(kScreenWidth, kScreenHeight, Graphics::PixelFormat::createFormatCLUT8());
_screen.create(kScreenWidth, kScreenHeight * 2, Graphics::PixelFormat::createFormatCLUT8());
@@ -192,11 +196,6 @@ void GraphicManager::drawToolbar() {
file.close();
}
-void GraphicManager::fleshColors() {
- g_system->getPaletteManager()->setPalette(_egaPalette[39], 13, 1);
- g_system->getPaletteManager()->setPalette(_egaPalette[28], 5, 1);
-}
-
Common::Point GraphicManager::drawArc(Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color) {
Common::Point endPoint;
const float convfac = M_PI / 180.0;