diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | gfx.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -6,7 +6,7 @@ DEFINES = -DUNIX -DUSE_ADLIB LDFLAGS := INCLUDES:= `sdl-config --cflags` -I./ -I./sound CPPFLAGS= $(DEFINES) $(INCLUDES) -LIBS = `sdl-config --libs` -lreadline -lncurses -lhistory -lm +LIBS = `sdl-config --libs` -lncurses -lm ZIPFILE := scummvm-`date '+%Y-%m-%d'`.zip INCS = scumm.h scummsys.h stdafx.h @@ -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); } |