diff options
author | Johannes Schickel | 2009-05-24 15:17:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-24 15:17:42 +0000 |
commit | b3c6751b9b7fc1401fd5e87a034cdaec92b67b20 (patch) | |
tree | aa00dba58fb88ea2e095b886963370c7290c692b /engines/sword1/text.cpp | |
parent | 7c1eb057146af11793c627327f3fefe309d27fbb (diff) | |
download | scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.gz scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.bz2 scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.zip |
Strip trailing whitespaces in the whole code base.
svn-id: r40867
Diffstat (limited to 'engines/sword1/text.cpp')
-rw-r--r-- | engines/sword1/text.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword1/text.cpp b/engines/sword1/text.cpp index fd9b9dea28..1ca6fdd27d 100644 --- a/engines/sword1/text.cpp +++ b/engines/sword1/text.cpp @@ -80,7 +80,7 @@ uint32 Text::lowTextManager(uint8 *ascii, int32 width, uint8 pen) { void Text::makeTextSprite(uint8 slot, uint8 *text, uint16 maxWidth, uint8 pen) { LineInfo lines[MAX_LINES]; uint16 numLines = analyzeSentence(text, maxWidth, lines); - + uint16 sprWidth = 0; uint16 lineCnt; for (lineCnt = 0; lineCnt < numLines; lineCnt++) @@ -103,7 +103,7 @@ void Text::makeTextSprite(uint8 slot, uint8 *text, uint16 maxWidth, uint8 pen) { memset(linePtr, NO_COL, sprSize); for (lineCnt = 0; lineCnt < numLines; lineCnt++) { uint8 *sprPtr = linePtr + (sprWidth - lines[lineCnt].width) / 2; // center the text - for (uint16 pos = 0; pos < lines[lineCnt].length; pos++) + for (uint16 pos = 0; pos < lines[lineCnt].length; pos++) sprPtr += copyChar(*text++, sprPtr, sprWidth, pen) - OVERLAP; text++; // skip space at the end of the line if(SwordEngine::isPsx()) //Chars are half height in psx version @@ -166,7 +166,7 @@ uint16 Text::copyChar(uint8 ch, uint8 *sprPtr, uint16 sprWidth, uint8 pen) { uint8 *decBuf = NULL; uint8 *decChr; uint16 frameHeight = 0; - + if(SwordEngine::isPsx()) { frameHeight = _resMan->getUint16(chFrame->height)/2; if(_fontId == CZECH_GAME_FONT) { //Czech game fonts are compressed @@ -179,7 +179,7 @@ uint16 Text::copyChar(uint8 ch, uint8 *sprPtr, uint16 sprWidth, uint8 pen) { frameHeight = _resMan->getUint16(chFrame->height); decChr = chData; } - + for (uint16 cnty = 0; cnty < frameHeight; cnty++) { for (uint16 cntx = 0; cntx < _resMan->getUint16(chFrame->width); cntx++) { if (*decChr == LETTER_COL) |