aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-20 20:01:52 +0100
committerJohannes Schickel2016-03-20 20:03:54 +0100
commit2e5ef7484899df83a403d4b4041f920d932a71c1 (patch)
tree1a49dbb76847f411480998319ecc3d97dc83b0a2 /graphics/font.cpp
parent71c649f8d9296f51c88fbc54eca34b9dfb4d9cd1 (diff)
downloadscummvm-rg350-2e5ef7484899df83a403d4b4041f920d932a71c1.tar.gz
scummvm-rg350-2e5ef7484899df83a403d4b4041f920d932a71c1.tar.bz2
scummvm-rg350-2e5ef7484899df83a403d4b4041f920d932a71c1.zip
GRAPHICS: Use correct bounding rect in Font::drawString taking Common::String.
Diffstat (limited to 'graphics/font.cpp')
-rw-r--r--graphics/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index 4214b3f41b..abc9519fd9 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -277,7 +277,7 @@ void Font::drawString(Surface *dst, const Common::U32String &str, int x, int y,
void Font::drawString(ManagedSurface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align, int deltax, bool useEllipsis) const {
drawString(&dst->_innerSurface, str, x, y, w, color, align, deltax, useEllipsis);
if (w != 0) {
- dst->addDirtyRect(getBoundingBox(str, x, y, w, align));
+ dst->addDirtyRect(getBoundingBox(str, x, y, w, align, deltax, useEllipsis));
}
}