From 9f0245094b8eb2ba5626cf96498ee360a3366f27 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 5 Jul 2009 19:57:08 +0000 Subject: Ooops, fixing monospaced text input again svn-id: r42146 --- engines/gob/hotspots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp index eca9a250b4..49c4c32032 100644 --- a/engines/gob/hotspots.cpp +++ b/engines/gob/hotspots.cpp @@ -681,7 +681,7 @@ uint16 Hotspots::readString(uint16 xPos, uint16 yPos, uint16 width, uint16 heigh bool monoSpaced = (font.extraData == 0); uint32 pos = strlen(str); - uint32 editSize = monoSpaced ? 0 : (width / font.itemWidth); + uint32 editSize = monoSpaced ? (width / font.itemWidth) : 0; uint16 key = 0; char tempStr[256]; -- cgit v1.2.3