Ticket #2690: flashlight_v2.diff
File flashlight_v2.diff, 1.0 KB (added by , 18 years ago) |
---|
-
engines/scumm/intern.h
59 59 public: 60 60 ScummEngine_v5(OSystem *syst, const DetectorResult &dr); 61 61 62 void clearFlashlight(); 62 63 protected: 63 64 virtual void setupOpcodes(); 64 65 virtual void executeOpcode(byte i); -
engines/scumm/gfx.cpp
789 789 val = +1; 790 790 redrawBGStrip(0, 1); 791 791 } else if (_fullRedraw || diff != 0) { 792 if (_game.version <= 5) { 793 ((ScummEngine_v5 *)this)->clearFlashlight(); 794 } 792 795 _bgNeedsRedraw = false; 793 796 redrawBGStrip(0, gdi._numStrips); 794 797 } … … 1089 1092 } 1090 1093 } 1091 1094 1095 void ScummEngine_v5::clearFlashlight() { 1096 _flashlight.isDrawn = false; 1097 _flashlight.buffer = NULL; 1098 } 1099 1092 1100 void ScummEngine_v5::drawFlashlight() { 1093 1101 int i, j, x, y; 1094 1102 VirtScreen *vs = &virtscr[kMainVirtScreen];