TONY: Fix background dirty rect handling.
Reset the scrolling state on load, so that when a new scene is loaded, the background is redrawn. Also, revert the workaround in d0d15af9, since this (hopefully) fixes the underlying problem.
This commit is contained in:
parent
61b11037c3
commit
0163bd38e8
2 changed files with 5 additions and 9 deletions
|
@ -1945,9 +1945,6 @@ RMLocation::RMLocation() {
|
|||
_buf = NULL;
|
||||
TEMPNumLoc = 0;
|
||||
_cmode = CM_256;
|
||||
|
||||
_prevScroll.set(-1, -1);
|
||||
_prevFixedScroll.set(-1, -1);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2020,6 +2017,10 @@ bool RMLocation::load(RMDataStream &ds) {
|
|||
byte cm;
|
||||
int i;
|
||||
|
||||
// Reset dirty rectangling
|
||||
_prevScroll.set(-1, -1);
|
||||
_prevFixedScroll.set(-1, -1);
|
||||
|
||||
// Check the ID
|
||||
ds >> id[0] >> id[1] >> id[2];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue