diff options
-rw-r--r-- | engines/titanic/support/font.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/support/font.cpp b/engines/titanic/support/font.cpp index d1c947f01e..ca9a7ed4b2 100644 --- a/engines/titanic/support/font.cpp +++ b/engines/titanic/support/font.cpp @@ -232,11 +232,11 @@ void STFont::copyRect(CVideoSurface *surface, const Point &pt, Rect &rect) { uint16 *lineP = surface->getBasePtr(pt.x, pt.y); uint16 color = getColor(); - for (int yp = rect.top; yp < rect.bottom; ++yp, lineP += surface->getPitch()) { + for (int yp = rect.top; yp < rect.bottom; ++yp, lineP += surface->getWidth()) { uint16 *destP = lineP; for (int xp = rect.left; xp < rect.right; ++xp, ++destP) { const byte *srcP = _dataPtr + yp * _dataWidth + xp; - if (*srcP >> 3) + if (!(*srcP >> 3)) *destP = color; } } |