aboutsummaryrefslogtreecommitdiff
path: root/engines/access/font.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-10 21:51:06 -0500
committerPaul Gilbert2016-03-14 20:56:25 -0400
commit9c7569b74bf3493f7970a912ae54b87d73e6633e (patch)
treef76988bdb103698a9cc49676a7e7f0da0ef5a79a /engines/access/font.cpp
parent433a2daa6a42b4cca3a715d4461a893be17ef61a (diff)
downloadscummvm-rg350-9c7569b74bf3493f7970a912ae54b87d73e6633e.tar.gz
scummvm-rg350-9c7569b74bf3493f7970a912ae54b87d73e6633e.tar.bz2
scummvm-rg350-9c7569b74bf3493f7970a912ae54b87d73e6633e.zip
ACCESS: Changed engine to use Graphics::ManagedSurface
Diffstat (limited to 'engines/access/font.cpp')
-rw-r--r--engines/access/font.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/access/font.cpp b/engines/access/font.cpp
index 8af183f193..6ae65e43f0 100644
--- a/engines/access/font.cpp
+++ b/engines/access/font.cpp
@@ -151,13 +151,12 @@ 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));
+ Graphics::Surface dest = s->getSubArea(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);
- byte *pDest = (byte *)s->getBasePtr(pt.x, pt.y + y);
+ byte *pDest = (byte *)dest.getBasePtr(0, y);
// Loop through the horizontal pixels of the line
for (int x = 0; x < ch.w; ++x, ++pSrc, ++pDest) {