aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.cpp
diff options
context:
space:
mode:
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 404e04d18e..3680ad2eb8 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -827,7 +827,7 @@ void Font::drawString(Surface *dst, const Common::String &s, int x, int y, int w
}
if (align == kTextAlignCenter)
- x = x + (w - width - 1)/2;
+ x = x + (w - width)/2;
else if (align == kTextAlignRight)
x = x + w - width;
x += deltax;