diff options
author | Eugene Sandulenko | 2010-06-15 10:28:58 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-15 10:28:58 +0000 |
commit | a993e2fb45dd836efad3bc225f7186a4f48384fe (patch) | |
tree | 31045b894bfad7b0e8255e95f41ae71fb6e4417d | |
parent | 4dddfd44ceb8de712e51e83738f897ea9f9d3444 (diff) | |
download | scummvm-rg350-a993e2fb45dd836efad3bc225f7186a4f48384fe.tar.gz scummvm-rg350-a993e2fb45dd836efad3bc225f7186a4f48384fe.tar.bz2 scummvm-rg350-a993e2fb45dd836efad3bc225f7186a4f48384fe.zip |
AGI: Fix bug #2960563.
Bug #2960563: "AGI: (Fan) SQ0: Text input field overdraws Text window".
Now our text wrapping code matches original.
svn-id: r49736
-rw-r--r-- | engines/agi/text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp index f656abfa0c..36a289c47b 100644 --- a/engines/agi/text.cpp +++ b/engines/agi/text.cpp @@ -135,8 +135,8 @@ void AgiEngine::blitTextbox(const char *p, int y, int x, int len) { if (x == 0 && y == 0 && len == 0) x = y = -1; - if (len <= 0 || len >= 40) - len = 32; + if (len <= 0) + len = 30; xoff = x * CHAR_COLS; yoff = y * CHAR_LINES; |