Ticket #2690: flashlight.diff
File flashlight.diff, 1.4 KB (added by , 18 years ago) |
---|
-
engines/scumm/intern.h
88 88 void redefineBuiltinCursorFromChar(int index, int chr); 89 89 void redefineBuiltinCursorHotspot(int index, int x, int y); 90 90 91 virtual void clearFlashlight(); 91 92 void drawFlashlight(); 92 93 93 94 /* Version 5 script opcodes */ -
engines/scumm/gfx.cpp
253 253 int i; 254 254 int adj = 0; 255 255 256 clearFlashlight(); 257 256 258 for (i = 0; i < 3; i++) { 257 259 res.nukeResource(rtBuffer, i + 1); 258 260 res.nukeResource(rtBuffer, i + 5); … … 1089 1091 } 1090 1092 } 1091 1093 1094 void ScummEngine_v5::clearFlashlight() { 1095 _flashlight.isDrawn = false; 1096 _flashlight.buffer = NULL; 1097 } 1098 1092 1099 void ScummEngine_v5::drawFlashlight() { 1093 1100 int i, j, x, y; 1094 1101 VirtScreen *vs = &virtscr[kMainVirtScreen]; -
engines/scumm/scumm.h
496 496 virtual void animateCursor() {} 497 497 virtual void updatePalette(); 498 498 499 virtual void clearFlashlight() {} 500 499 501 /** 500 502 * Flag which signals that the SMUSH video playback should end now 501 503 * (e.g. because it was aborted by the user or it's simply finished).