aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-09 23:32:52 +0000
committerJohannes Schickel2009-08-09 23:32:52 +0000
commit738c51f88ff4f61009533d23d633805a03427c5c (patch)
tree33870a28af4365792693c2ae0187bc66bace8059 /engines/kyra
parent5a7f85fbf6ce7ea41eb05a883d7b25d0607fefa6 (diff)
downloadscummvm-rg350-738c51f88ff4f61009533d23d633805a03427c5c.tar.gz
scummvm-rg350-738c51f88ff4f61009533d23d633805a03427c5c.tar.bz2
scummvm-rg350-738c51f88ff4f61009533d23d633805a03427c5c.zip
Clear the destination page for bitmap loading, this fixes graphics artifacts in Kyra1 amiga.
svn-id: r43189
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index e05e18d96f..11467231ad 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -2715,6 +2715,7 @@ void Screen::loadBitmap(const char *filename, int tempPage, int dstPage, Palette
uint8 *srcPtr = srcData + 10 + palSize;
uint8 *dstData = getPagePtr(dstPage);
+ memset(dstData, 0, SCREEN_PAGE_SIZE);
if (dstPage == 0 || tempPage == 0)
_forceFullUpdate = true;