aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-03-24 00:27:00 +0000
committerVincent Hamm2002-03-24 00:27:00 +0000
commitf5741df25cb58b1ae73db5cb00fdb1b2d601abbf (patch)
tree63c8f9504169e407afccebe99b64ed91ba8fb02b /gfx.cpp
parent3f53daa8a1d77f783c0653ed44087c8fd5629b99 (diff)
downloadscummvm-rg350-f5741df25cb58b1ae73db5cb00fdb1b2d601abbf.tar.gz
scummvm-rg350-f5741df25cb58b1ae73db5cb00fdb1b2d601abbf.tar.bz2
scummvm-rg350-f5741df25cb58b1ae73db5cb00fdb1b2d601abbf.zip
Fixed garbadge in inventory section. Removed unused library in the Makefile
svn-id: r3806
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx.cpp b/gfx.cpp
index f94ca047d2..56785d286d 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -67,6 +67,8 @@ void Scumm::initScreens(int a, int b, int w, int h) {
void Scumm::initVirtScreen(int slot, int top, int height, bool twobufs, bool fourextra) {
VirtScreen *vs = &virtscr[slot];
int size;
+ int i;
+ byte *ptr;
assert(height>=0);
assert(slot>=0 && slot<4);
@@ -89,6 +91,10 @@ void Scumm::initVirtScreen(int slot, int top, int height, bool twobufs, bool fou
vs->screenPtr = _videoBuffer+328*top;
+ ptr=vs->screenPtr;
+ for(i=0;i<size;i++) // reset background ?
+ *ptr++=0;
+
if (twobufs) {
createResource(rtBuffer, slot+5, size);
}