diff options
author | Max Horn | 2002-11-28 03:08:35 +0000 |
---|---|---|
committer | Max Horn | 2002-11-28 03:08:35 +0000 |
commit | b6a70f4a478eb8c21ad73dab289993ff945d5264 (patch) | |
tree | e7134dab7911d7adef97d9e6cb090821d8c493b3 /scumm | |
parent | 3c96baa2e452837988657df6b21b6b02f41bf238 (diff) | |
download | scummvm-rg350-b6a70f4a478eb8c21ad73dab289993ff945d5264.tar.gz scummvm-rg350-b6a70f4a478eb8c21ad73dab289993ff945d5264.tar.bz2 scummvm-rg350-b6a70f4a478eb8c21ad73dab289993ff945d5264.zip |
small cleanup
svn-id: r5734
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index dbb1392de1..08f8f7e79c 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -603,23 +603,12 @@ void Scumm::drawFlashlight() _flashlight.y, _flashlight.y + _flashlight.h, 0x80000000); if (_flashlight.buffer) { - - offset = _realWidth - _flashlight.w; i = _flashlight.h; do { - j = _flashlight.w / 4; - do { -#if defined(SCUMM_NEED_ALIGNMENT) - memset(_flashlight.buffer, 0, sizeof(uint32)); -#else - *(uint32 *)_flashlight.buffer = 0; -#endif - _flashlight.buffer += 4; - } while (--j); - _flashlight.buffer += offset; + memset(_flashlight.buffer, 0, _flashlight.w); + _flashlight.buffer += _realWidth; } while (--i); } - _flashlightIsDrawn = false; } |