diff options
author | Florian Kagerer | 2010-10-17 13:08:00 +0000 |
---|---|---|
committer | Florian Kagerer | 2010-10-17 13:08:00 +0000 |
commit | c841c3fb7c9b93d48512c4480753ca409770990f (patch) | |
tree | 8e54a799b750048d770f5778c7ad4d64b8ff4778 /engines/scumm/gfx.cpp | |
parent | 728a231d7b8b392b933e507f17f20afe91fd0eed (diff) | |
download | scummvm-rg350-c841c3fb7c9b93d48512c4480753ca409770990f.tar.gz scummvm-rg350-c841c3fb7c9b93d48512c4480753ca409770990f.tar.bz2 scummvm-rg350-c841c3fb7c9b93d48512c4480753ca409770990f.zip |
SCUMM/FM-TOWNS: more improvements to japanese font drawing
- made use of LordHotos graphics/sjis code to reduce code duplication
- japanese mode for version 3 and 5 works fine now with few exceptions (some line spacing glitches in MI1 intro etc.)
svn-id: r53554
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r-- | engines/scumm/gfx.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index e7c81bd418..50d6117dc7 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -1013,11 +1013,6 @@ void ScummEngine::restoreBackground(Common::Rect rect, byte backColor) { if (rect.left > vs->w) return; - -#ifndef DISABLE_TOWNS_DUAL_LAYER_MODE - if (_game.platform == Common::kPlatformFMTowns && _game.id == GID_MONKEY && vs->number == kVerbVirtScreen && rect.bottom <= 154) - rect.right = 320; -#endif // Convert 'rect' to local (virtual screen) coordinates rect.top -= vs->topline; @@ -1025,13 +1020,18 @@ void ScummEngine::restoreBackground(Common::Rect rect, byte backColor) { rect.clip(vs->w, vs->h); + const int height = rect.height(); + const int width = rect.width(); + +#ifndef DISABLE_TOWNS_DUAL_LAYER_MODE + if (_game.platform == Common::kPlatformFMTowns && _game.id == GID_MONKEY && vs->number == kVerbVirtScreen && rect.bottom <= 154) + rect.right = 320; +#endif + markRectAsDirty(vs->number, rect, USAGE_BIT_RESTORED); screenBuf = vs->getPixels(rect.left, rect.top); - const int height = rect.height(); - const int width = rect.width(); - if (!height) return; |