From bebb4cefd16674242b5a9d6ed1f93fd14504a06a Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 12 Apr 2008 23:40:14 +0000 Subject: Initialize all screen buffers properly. svn-id: r31492 --- engines/kyra/screen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines') diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 8135dbb2af..a9228e8616 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -81,6 +81,7 @@ bool Screen::init() { uint8 *pagePtr = new uint8[SCREEN_PAGE_SIZE * 8]; for (int pageNum = 0; pageNum < SCREEN_PAGE_NUM; pageNum += 2) _pagePtrs[pageNum] = _pagePtrs[pageNum + 1] = pagePtr + (pageNum >> 1) * SCREEN_PAGE_SIZE; + memset(pagePtr, 0, SCREEN_PAGE_SIZE * 8); memset(_shapePages, 0, sizeof(_shapePages)); -- cgit v1.2.3