From e4b231b39dfb0247afa61ac8afb40be863b9f08c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 27 Apr 2016 21:24:12 -0400 Subject: TITANIC: Fix vertical drawing of text --- engines/titanic/support/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/titanic') 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; } } -- cgit v1.2.3