aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--gfx.cpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b725a54a20..6af1fb6dc5 100644
--- a/Makefile
+++ b/Makefile
@@ -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
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);
}