diff options
author | Alyssa Milburn | 2011-04-14 21:08:52 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-04-14 21:08:52 +0200 |
commit | 8305f9c2a0e3de16a0e39fc8af65ef71decff092 (patch) | |
tree | e77d5750f1859b89c0c0f57162b7180d60b2df4b /engines | |
parent | c60e773981be82ae0be2c649e9a079da4dae26a9 (diff) | |
download | scummvm-rg350-8305f9c2a0e3de16a0e39fc8af65ef71decff092.tar.gz scummvm-rg350-8305f9c2a0e3de16a0e39fc8af65ef71decff092.tar.bz2 scummvm-rg350-8305f9c2a0e3de16a0e39fc8af65ef71decff092.zip |
SWORD25: Simplify text rendering code slightly.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/gfx/text.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sword25/gfx/text.cpp b/engines/sword25/gfx/text.cpp index bbfc3804a3..b1c1708565 100644 --- a/engines/sword25/gfx/text.cpp +++ b/engines/sword25/gfx/text.cpp @@ -173,10 +173,8 @@ bool Text::doRender() { Common::Rect curRect = fontPtr->getCharacterRect((byte)(*iter).text[i]); Common::Rect renderRect(curX, curY, curX + curRect.width(), curY + curRect.height()); - int renderX = curX + (renderRect.left - renderRect.left); - int renderY = curY + (renderRect.top - renderRect.top); renderRect.translate(curRect.left - curX, curRect.top - curY); - result = charMapPtr->blit(renderX, renderY, Image::FLIP_NONE, &renderRect, _modulationColor); + result = charMapPtr->blit(curX, curY, Image::FLIP_NONE, &renderRect, _modulationColor); if (!result) break; |