Initialize the private frame buffer at '0' to prevent a lot of

Valgrind errors in the first Smush movie of TheDig.

svn-id: r4158
This commit is contained in:
Lionel Ulmer 2002-05-01 12:01:43 +00:00
parent d1ba5f354f
commit 786f9914c9

View File

@ -1280,7 +1280,7 @@ void Scumm::launch()
_minHeapThreshold = 400000;
/* Create a primary virtual screen */
_videoBuffer = (byte*)malloc(328*200);
_videoBuffer = (byte*)calloc(328*200, 1);
allocResTypeData(rtBuffer, MKID('NONE'), 10, "buffer", 0);
initVirtScreen(0, 0, 0, 320, 200, false, false);