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:
Torbjörn Andersson 2021-05-15 21:57:02 +02:00 committed by Eugene Sandulenko
parent ec6f0b1cf3
commit 93cbb988a6
2 changed files with 9 additions and 0 deletions

View file

@ -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);

View file

@ -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;