diff options
author | Paul Gilbert | 2016-04-27 21:24:12 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:12:12 -0400 |
commit | e4b231b39dfb0247afa61ac8afb40be863b9f08c (patch) | |
tree | 66e2a2bda3bd177f43d4047002a511ac76cf6689 /engines/titanic | |
parent | a8835043f54daf54a2c03ccdb02f125a62a7ddcd (diff) | |
download | scummvm-rg350-e4b231b39dfb0247afa61ac8afb40be863b9f08c.tar.gz scummvm-rg350-e4b231b39dfb0247afa61ac8afb40be863b9f08c.tar.bz2 scummvm-rg350-e4b231b39dfb0247afa61ac8afb40be863b9f08c.zip |
TITANIC: Fix vertical drawing of text
Diffstat (limited to 'engines/titanic')
-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; } } |