aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-27 21:24:12 -0400
committerPaul Gilbert2016-07-10 16:12:12 -0400
commite4b231b39dfb0247afa61ac8afb40be863b9f08c (patch)
tree66e2a2bda3bd177f43d4047002a511ac76cf6689 /engines/titanic
parenta8835043f54daf54a2c03ccdb02f125a62a7ddcd (diff)
downloadscummvm-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.cpp4
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;
}
}