From f95c8450cbde8f3e73ead3399fb8ec817023d843 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 18 Jun 2007 10:57:50 +0000 Subject: Fix line wrapping of text in Elvira 2. svn-id: r27522 --- engines/agos/window.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/agos/window.cpp') diff --git a/engines/agos/window.cpp b/engines/agos/window.cpp index aefe623952..c02a733972 100644 --- a/engines/agos/window.cpp +++ b/engines/agos/window.cpp @@ -60,11 +60,16 @@ WindowBlock *AGOSEngine::openWindow(uint x, uint y, uint w, uint h, uint flags, window->fill_color = fillColor; window->text_color = textColor; window->textColumn = 0; - window->textRow = 0; window->textColumnOffset = 0; - window->textMaxLength = window->width * 8 / 6; // characters are 6 pixels + window->textRow = 0; window->scrollY = 0; + // Characters are 6 pixels + if (getGameType() == GType_ELVIRA2) + window->textMaxLength = (window->width * 8 - 4) / 6; + else + window->textMaxLength = window->width * 8 / 6; + if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 || getGameType() == GType_WW) clearWindow(window); -- cgit v1.2.3