diff options
author | Martin Kiewitz | 2010-07-06 11:03:10 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-06 11:03:10 +0000 |
commit | f3a935351b7977517876e2342471c1330a5db7ff (patch) | |
tree | fdb3a9b7a47bdcc6de4cb59e847d35435efe2180 /engines/sci | |
parent | 0c411d66cef3c79f077df46882518e786ec811f2 (diff) | |
download | scummvm-rg350-f3a935351b7977517876e2342471c1330a5db7ff.tar.gz scummvm-rg350-f3a935351b7977517876e2342471c1330a5db7ff.tar.bz2 scummvm-rg350-f3a935351b7977517876e2342471c1330a5db7ff.zip |
SCI: fix regression of r50599 - broken greyed font drawing
svn-id: r50720
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/font.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/graphics/font.cpp b/engines/sci/graphics/font.cpp index ce4c1fafb3..852771d081 100644 --- a/engines/sci/graphics/font.cpp +++ b/engines/sci/graphics/font.cpp @@ -83,11 +83,12 @@ void GfxFontFromResource::draw(uint16 chr, int16 top, int16 left, byte color, bo int charHeight = MIN<int>(getCharHeight(chr), _screen->getHeight() - top); byte b = 0, mask = 0xFF; int y = 0; + int16 greyedTop = top; byte *pIn = getCharData(chr); for (int i = 0; i < charHeight; i++, y++) { if (greyedOutput) - mask = top++ % 2 ? 0xAA : 0x55; + mask = greyedTop++ % 2 ? 0xAA : 0x55; for (int done = 0; done < charWidth; done++) { if ((done & 7) == 0) // fetching next data byte b = *(pIn++) & mask; |