Dirty rects fix for pixels remaining on screen changes

svn-id: r44371
This commit is contained in:
Paul Gilbert 2009-09-26 04:13:44 +00:00
parent 73a4b7857f
commit 7f1b50f300

View file

@ -362,13 +362,13 @@ void switchBackground(const byte *newBg) {
} else if ((sliceXEnd != -1) && (xp >= (sliceXEnd + 10))) {
// If more than 10 pixels have gone by without any changes, then end the slice
gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, sliceXEnd, yp + 1));
gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, sliceXEnd, MIN(yp + 2, 200)));
sliceXStart = sliceXEnd = -1;
}
}
if (sliceXStart != -1)
gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, 320, yp + 1));
gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, 320, MIN(yp + 2, 200)));
}
}