[Scummvm-cvs-logs] SF.net SVN: scummvm: [24738] scummvm/trunk/engines/cine
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Nov 18 21:57:37 CET 2006
Revision: 24738
http://svn.sourceforge.net/scummvm/?rev=24738&view=rev
Author: sev
Date: 2006-11-18 12:57:37 -0800 (Sat, 18 Nov 2006)
Log Message:
-----------
Implement o1_fadeToBlack()
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
scummvm/trunk/engines/cine/gfx.h
scummvm/trunk/engines/cine/script.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2006-11-18 19:58:17 UTC (rev 24737)
+++ scummvm/trunk/engines/cine/gfx.cpp 2006-11-18 20:57:37 UTC (rev 24738)
@@ -369,4 +369,22 @@
}
}
+void fadeToBlack() {
+ for (int i = 0; i < 8; i++) {
+ if (colorMode256) {
+ for (int j = 0; j < 256; j++) {
+ palette256[j] = transformColor(palette256[j], -1, -1, -1);
+ }
+ } else {
+ for (int j = 0; j < 16; j++) {
+ c_palette[j] = transformColor(c_palette[j], -1, -1, -1);
+ }
+ }
+ gfxFlipRawPage(page1Raw);
+ g_system->updateScreen();
+ g_system->delayMillis(50);
+ }
+}
+
+
} // End of namespace Cine
Modified: scummvm/trunk/engines/cine/gfx.h
===================================================================
--- scummvm/trunk/engines/cine/gfx.h 2006-11-18 19:58:17 UTC (rev 24737)
+++ scummvm/trunk/engines/cine/gfx.h 2006-11-18 20:57:37 UTC (rev 24738)
@@ -70,6 +70,8 @@
void gfxDrawPlainBoxRaw(int16 x1, int16 y1, int16 x2, int16 y2, byte color, byte *page);
void drawSpriteRaw2(byte *spritePtr, byte transColor, int16 width, int16 height, byte *page, int16 x, int16 y);
+void fadeToBlack(void);
+
} // End of namespace Cine
#endif
Modified: scummvm/trunk/engines/cine/script.cpp
===================================================================
--- scummvm/trunk/engines/cine/script.cpp 2006-11-18 19:58:17 UTC (rev 24737)
+++ scummvm/trunk/engines/cine/script.cpp 2006-11-18 20:57:37 UTC (rev 24738)
@@ -1501,8 +1501,8 @@
void o1_fadeToBlack() {
debugC(5, kCineDebugScript, "Line: %d: request fadeout", _currentLine);
- //fadeToBlack();
- warning("STUB: o1_fadeToBlack()");
+
+ fadeToBlack();
}
void o1_transformPaletteRange() {
@@ -1512,7 +1512,7 @@
uint16 g = getNextWord();
uint16 b = getNextWord();
- debugC(5, kCineDebugScript, "Line: %d: transformPaletteRange(from:%d,numIdx:%d,r:%d,g:%d,b:%d) -> unimplemented", _currentLine, startColor, numColor, r, g, b);
+ debugC(5, kCineDebugScript, "Line: %d: transformPaletteRange(from:%d,numIdx:%d,r:%d,g:%d,b:%d)", _currentLine, startColor, numColor, r, g, b);
transformPaletteRange(startColor, numColor, r, g, b);
}
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