[Scummvm-git-logs] scummvm master -> 320d6c8255de9943ab129fe536f99f4dabad2284
csnover
csnover at users.noreply.github.com
Wed Jan 11 19:04:30 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
320d6c8255 SCI32: Fix uninitialised read of cursor background at start of game
Commit: 320d6c8255de9943ab129fe536f99f4dabad2284
https://github.com/scummvm/scummvm/commit/320d6c8255de9943ab129fe536f99f4dabad2284
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-01-11T12:02:12-06:00
Commit Message:
SCI32: Fix uninitialised read of cursor background at start of game
Changed paths:
engines/sci/graphics/cursor32.cpp
diff --git a/engines/sci/graphics/cursor32.cpp b/engines/sci/graphics/cursor32.cpp
index 2f2611c..6bb1323 100644
--- a/engines/sci/graphics/cursor32.cpp
+++ b/engines/sci/graphics/cursor32.cpp
@@ -278,6 +278,7 @@ void GfxCursor32::setView(const GuiResourceId viewId, const int16 loopNo, const
}
_cursorBack.data = (byte *)realloc(_cursorBack.data, _width * _height);
+ memset(_cursorBack.data, 0, _width * _height);
_drawBuff1.data = (byte *)realloc(_drawBuff1.data, _width * _height);
_drawBuff2.data = (byte *)realloc(_drawBuff2.data, _width * _height * 4);
_savedVmapRegion.data = (byte *)realloc(_savedVmapRegion.data, _width * _height);
More information about the Scummvm-git-logs
mailing list