diff options
author | Kari Salminen | 2007-06-25 18:32:40 +0000 |
---|---|---|
committer | Kari Salminen | 2007-06-25 18:32:40 +0000 |
commit | 4d7d3d96f587ad29ecb722e3537e3af83b950d01 (patch) | |
tree | 9d284d9ca4227d5387beb0394e84c153defa732a /engines | |
parent | 23c8240048209cd53d5d12874e28d9f9382f64c5 (diff) | |
download | scummvm-rg350-4d7d3d96f587ad29ecb722e3537e3af83b950d01.tar.gz scummvm-rg350-4d7d3d96f587ad29ecb722e3537e3af83b950d01.tar.bz2 scummvm-rg350-4d7d3d96f587ad29ecb722e3537e3af83b950d01.zip |
Removed obsolete code for setting transparent debugging console colors.
svn-id: r27714
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/graphics.cpp | 8 | ||||
-rw-r--r-- | engines/agi/graphics.h | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index b81871254c..b5d517e25a 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -624,8 +624,7 @@ int GfxMgr::keypress() { /** * Initialize the color palette * This function initializes the color palette using the specified 16-color - * RGB palette and creates 16 extra palette entries with translucent colors - * for the interpreter console. + * RGB palette. * @param p A pointer to the 16-color RGB palette. */ void GfxMgr::initPalette(uint8 *p) { @@ -633,7 +632,6 @@ void GfxMgr::initPalette(uint8 *p) { for (i = 0; i < 48; i++) { _palette[i] = p[i]; - _palette[i + 48] = (p[i] + 0x30) >> 2; } } @@ -642,13 +640,13 @@ void GfxMgr::gfxSetPalette() { byte pal[256 * 4]; if (!(_vm->getFeatures() & (GF_AGI256 | GF_AGI256_2))) { - for (i = 0; i < 32; i++) { + for (i = 0; i < 16; i++) { pal[i * 4 + 0] = _palette[i * 3 + 0] << 2; pal[i * 4 + 1] = _palette[i * 3 + 1] << 2; pal[i * 4 + 2] = _palette[i * 3 + 2] << 2; pal[i * 4 + 3] = 0; } - g_system->setPalette(pal, 0, 32); + g_system->setPalette(pal, 0, 16); } else { for (i = 0; i < 256; i++) { pal[i * 4 + 0] = vgaPalette[i * 3 + 0]; diff --git a/engines/agi/graphics.h b/engines/agi/graphics.h index cdbae8d6e6..38f80675cd 100644 --- a/engines/agi/graphics.h +++ b/engines/agi/graphics.h @@ -41,7 +41,7 @@ class GfxMgr { private: AgiEngine *_vm; - uint8 _palette[32 * 3]; + uint8 _palette[16 * 3]; uint8 *_agiScreen; unsigned char *_screen; |