diff options
author | Paul Gilbert | 2014-12-14 15:22:09 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-12-14 15:22:09 -0500 |
commit | fda4ef620f3eefc76d7362945d514e6c46187073 (patch) | |
tree | 3c41c678cdd4711f9fd15933d6306e41e5e5ba7c /engines/access/font.cpp | |
parent | 924f2abdf40a97966fff991d7cb0db842212a567 (diff) | |
download | scummvm-rg350-fda4ef620f3eefc76d7362945d514e6c46187073.tar.gz scummvm-rg350-fda4ef620f3eefc76d7362945d514e6c46187073.tar.bz2 scummvm-rg350-fda4ef620f3eefc76d7362945d514e6c46187073.zip |
ACCESS: Add dirty rect handling for font display
Diffstat (limited to 'engines/access/font.cpp')
-rw-r--r-- | engines/access/font.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/access/font.cpp b/engines/access/font.cpp index 51fb9dc1c8..1aadfb6be2 100644 --- a/engines/access/font.cpp +++ b/engines/access/font.cpp @@ -150,6 +150,8 @@ void Font::drawString(ASurface *s, const Common::String &msg, const Common::Poin int Font::drawChar(ASurface *s, char c, Common::Point &pt) { Graphics::Surface &ch = _chars[c - ' ']; + s->addDirtyRect(Common::Rect(pt.x, pt.y, pt.x + ch.w, pt.y + ch.h)); + // Loop through the lines of the character for (int y = 0; y < ch.h; ++y) { byte *pSrc = (byte *)ch.getBasePtr(0, y); |