diff options
author | RichieSams | 2015-02-11 14:57:05 -0600 |
---|---|---|
committer | RichieSams | 2015-02-11 15:13:19 -0600 |
commit | a851fa8e1aef50334402fec65bf89ee8b582ea62 (patch) | |
tree | 13f17fa8bf1603c7b08376791592d523ef13adef /engines/zvision/graphics | |
parent | 55be1b82a84454ae838419e22ce15cade5298665 (diff) | |
download | scummvm-rg350-a851fa8e1aef50334402fec65bf89ee8b582ea62.tar.gz scummvm-rg350-a851fa8e1aef50334402fec65bf89ee8b582ea62.tar.bz2 scummvm-rg350-a851fa8e1aef50334402fec65bf89ee8b582ea62.zip |
ZVISION: Refactor text rendering code in order to fix word wrapping
and clarify the logic. Fixes bug #6801
Diffstat (limited to 'engines/zvision/graphics')
-rw-r--r-- | engines/zvision/graphics/render_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/graphics/render_manager.cpp b/engines/zvision/graphics/render_manager.cpp index 3cd9701b7c..8758097c93 100644 --- a/engines/zvision/graphics/render_manager.cpp +++ b/engines/zvision/graphics/render_manager.cpp @@ -755,7 +755,7 @@ void RenderManager::processSubs(uint16 deltatime) { if (sub->txt.size()) { Graphics::Surface *rndr = new Graphics::Surface(); rndr->create(sub->r.width(), sub->r.height(), _engine->_resourcePixelFormat); - _engine->getTextRenderer()->drawTxtInOneLine(sub->txt, *rndr); + _engine->getTextRenderer()->drawTextWithWordWrapping(sub->txt, *rndr); Common::Rect empty; blitSurfaceToSurface(*rndr, empty, _subtitleSurface, sub->r.left - _subtitleArea.left + _workingWindow.left, sub->r.top - _subtitleArea.top + _workingWindow.top); rndr->free(); |