Dirty rects fix for pixels remaining on screen changes
svn-id: r44371
This commit is contained in:
parent
73a4b7857f
commit
7f1b50f300
1 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue