diff options
author | Travis Howell | 2006-10-27 13:28:32 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-27 13:28:32 +0000 |
commit | 9f85511537f460d70bf8b3b22ff77327554e752d (patch) | |
tree | e52c3dd60a3901e0543d19b64d13c730d6426336 /engines/agos/charset.cpp | |
parent | f07fc242b30f781d197fe19005e3a9cbff922c44 (diff) | |
download | scummvm-rg350-9f85511537f460d70bf8b3b22ff77327554e752d.tar.gz scummvm-rg350-9f85511537f460d70bf8b3b22ff77327554e752d.tar.bz2 scummvm-rg350-9f85511537f460d70bf8b3b22ff77327554e752d.zip |
Cleanup
svn-id: r24533
Diffstat (limited to 'engines/agos/charset.cpp')
-rw-r--r-- | engines/agos/charset.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
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; |