aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/function.cpp
diff options
context:
space:
mode:
authorVincent Hamm2007-12-24 01:05:36 +0000
committerVincent Hamm2007-12-24 01:05:36 +0000
commit2d9d0f1b1ff9c76aedb587b89bc4e87d81f87ae2 (patch)
tree5f385232e38f9c13c31659a2413163a8d45ea80c /engines/cruise/function.cpp
parent15469b47b5c9883636e775a31e44e6b4bc43dccb (diff)
downloadscummvm-rg350-2d9d0f1b1ff9c76aedb587b89bc4e87d81f87ae2.tar.gz
scummvm-rg350-2d9d0f1b1ff9c76aedb587b89bc4e87d81f87ae2.tar.bz2
scummvm-rg350-2d9d0f1b1ff9c76aedb587b89bc4e87d81f87ae2.zip
-Fade in/fade out
-Implement background mode 5 svn-id: r29968
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r--engines/cruise/function.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 38d5c966b2..87dd78e0cf 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -535,7 +535,23 @@ int16 Op_GetlowMemory(void) {
}
int16 Op_FadeOut(void) {
- printf("Op_FadeOut dummy\n");
+ for(long int i=0; i< 256; i+=32) {
+ for(long int j=0; j<256; j++) {
+ int offsetTable[3];
+ offsetTable[0] = -i;
+ offsetTable[1] = -i;
+ offsetTable[2] = -i;
+ calcRGB(&workpal[3*j], &workpal[3*j], offsetTable);
+ }
+ gfxModuleData_setPal256(workpal);
+ gfxModuleData_flipScreen();
+ }
+
+ //gfxModuleData_gfxClearFrameBuffer(backgroundPtrtable[currentActiveBackgroundPlane]);
+
+ fadeFlag = 1;
+ PCFadeFlag = 1;
+
return 0;
}