aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/touche/ui.cpp')
-rw-r--r--engines/touche/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp
index 9e0e093dc4..5dbcd41a29 100644
--- a/engines/touche/ui.cpp
+++ b/engines/touche/ui.cpp
@@ -147,7 +147,7 @@ void ToucheEngine::drawButton(void *button) {
if (b->flags & kButtonText) {
if (b->data != 0) {
const char *str = getString(b->data);
- const int w = getStringWidth(16, b->data);
+ const int w = getStringWidth(b->data);
const int h = 16;
const int x = b->x + (b->w - w) / 2;
const int y = b->y + (b->h - h) / 2;