aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/ui.cpp
diff options
context:
space:
mode:
authorGregory Montoir2006-11-10 20:57:26 +0000
committerGregory Montoir2006-11-10 20:57:26 +0000
commit588a6842c818ef98e2b29b82991d9727a3e4a73e (patch)
treee9d547a3f4b7668519648c15433458f79c3762d7 /engines/touche/ui.cpp
parent4e8d042e5cbe6a01cf0f32c692d99e0644559c1a (diff)
downloadscummvm-rg350-588a6842c818ef98e2b29b82991d9727a3e4a73e.tar.gz
scummvm-rg350-588a6842c818ef98e2b29b82991d9727a3e4a73e.tar.bz2
scummvm-rg350-588a6842c818ef98e2b29b82991d9727a3e4a73e.zip
font char width is always equal 16 pixels, removed unneeded parameter
svn-id: r24669
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;