SCUMM: Some fixes that I'm not sure exactly what they do
I don't know what these fixes do exactly, but judging by the old code they should be there.
This commit is contained in:
parent
ec6f0b1cf3
commit
93cbb988a6
2 changed files with 9 additions and 0 deletions
|
@ -1636,6 +1636,13 @@ void CharsetRendererMac::printChar(int chr, bool ignoreCharsetMask) {
|
|||
_str.right = right;
|
||||
_str.bottom = top;
|
||||
_firstChar = false;
|
||||
} else {
|
||||
if (_str.left > left)
|
||||
_str.left = left;
|
||||
if (_str.right < right)
|
||||
_str.right = right;
|
||||
if (_str.bottom < bottom)
|
||||
_str.bottom = bottom;
|
||||
}
|
||||
|
||||
_vm->markRectAsDirty(vs->number, left, right, top - vs->topline, bottom - vs->topline);
|
||||
|
|
|
@ -555,6 +555,8 @@ bool ScummEngine::loadState(int slot, bool compat, Common::String &filename) {
|
|||
|
||||
// Reset charset mask
|
||||
_charset->_hasMask = false;
|
||||
if (_macScreen)
|
||||
_macScreen->fillRect(Common::Rect(_macScreen->w, _macScreen->h), 0);
|
||||
clearTextSurface();
|
||||
|
||||
_lastCodePtr = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue