[Scummvm-cvs-logs] SF.net SVN: scummvm: [27714] scummvm/trunk/engines/agi
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Mon Jun 25 20:32:41 CEST 2007
Revision: 27714
http://scummvm.svn.sourceforge.net/scummvm/?rev=27714&view=rev
Author: buddha_
Date: 2007-06-25 11:32:40 -0700 (Mon, 25 Jun 2007)
Log Message:
-----------
Removed obsolete code for setting transparent debugging console colors.
Modified Paths:
--------------
scummvm/trunk/engines/agi/graphics.cpp
scummvm/trunk/engines/agi/graphics.h
Modified: scummvm/trunk/engines/agi/graphics.cpp
===================================================================
--- scummvm/trunk/engines/agi/graphics.cpp 2007-06-25 18:23:01 UTC (rev 27713)
+++ scummvm/trunk/engines/agi/graphics.cpp 2007-06-25 18:32:40 UTC (rev 27714)
@@ -624,8 +624,7 @@
/**
* 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 @@
for (i = 0; i < 48; i++) {
_palette[i] = p[i];
- _palette[i + 48] = (p[i] + 0x30) >> 2;
}
}
@@ -642,13 +640,13 @@
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];
Modified: scummvm/trunk/engines/agi/graphics.h
===================================================================
--- scummvm/trunk/engines/agi/graphics.h 2007-06-25 18:23:01 UTC (rev 27713)
+++ scummvm/trunk/engines/agi/graphics.h 2007-06-25 18:32:40 UTC (rev 27714)
@@ -41,7 +41,7 @@
private:
AgiEngine *_vm;
- uint8 _palette[32 * 3];
+ uint8 _palette[16 * 3];
uint8 *_agiScreen;
unsigned char *_screen;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list