From 9f85511537f460d70bf8b3b22ff77327554e752d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 27 Oct 2006 13:28:32 +0000 Subject: Cleanup svn-id: r24533 --- engines/agos/charset.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'engines/agos/charset.cpp') diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index cf14bd5ec0..6650581eef 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -314,10 +314,7 @@ void AGOSEngine::showMessageFormat(const char *s, ...) { openTextWindow(); if (!_showMessageFlag) { _windowArray[0] = _textWindow; - if (getGameType() == GType_FF || getGameType() == GType_PP) - justifyStart(_textWindow->textColumn, _textWindow->width); - else - justifyStart(_textWindow->textLength, _textWindow->textMaxLength); + justifyStart(); } _showMessageFlag = true; _fcsData1[_curWindow] = 1; @@ -327,9 +324,14 @@ void AGOSEngine::showMessageFormat(const char *s, ...) { justifyOutPut(*str); } -void AGOSEngine::justifyStart(uint a, uint b) { - _printCharCurPos = a; - _printCharMaxPos = b; +void AGOSEngine::justifyStart() { + if (getGameType() == GType_FF || getGameType() == GType_PP) { + _printCharCurPos = _textWindow->textColumn; + _printCharMaxPos = _textWindow->width; + } else { + _printCharCurPos = _textWindow->textLength; + _printCharMaxPos = _textWindow->textMaxLength; + } _printCharPixelCount = 0; _numLettersToPrint = 0; _newLines = 0; -- cgit v1.2.3