diff options
author | Eric Fry | 2018-06-26 22:35:31 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 989d8d9b8abecee3f0b72c92a05067e128fc6cdd (patch) | |
tree | 6879c75dccd45e4ae6f2396ee62425f625494f37 /engines/illusions/bbdou/bbdou_credits.cpp | |
parent | 7cadb7ad0ce7b24c28d3fa9d842f7083ae5b9056 (diff) | |
download | scummvm-rg350-989d8d9b8abecee3f0b72c92a05067e128fc6cdd.tar.gz scummvm-rg350-989d8d9b8abecee3f0b72c92a05067e128fc6cdd.tar.bz2 scummvm-rg350-989d8d9b8abecee3f0b72c92a05067e128fc6cdd.zip |
ILLUSIONS: Formatting, remove trailing whitespace.
Diffstat (limited to 'engines/illusions/bbdou/bbdou_credits.cpp')
-rw-r--r-- | engines/illusions/bbdou/bbdou_credits.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/illusions/bbdou/bbdou_credits.cpp b/engines/illusions/bbdou/bbdou_credits.cpp index 393026e9f7..08f9900c4e 100644 --- a/engines/illusions/bbdou/bbdou_credits.cpp +++ b/engines/illusions/bbdou/bbdou_credits.cpp @@ -53,7 +53,7 @@ void BbdouCredits::stop() { void BbdouCredits::drawNextLine() { uint leftIndex, rightIndex; - + if (!readNextLine(leftIndex, rightIndex)) { _vm->_scriptResource->_properties.set(_endSignalPropertyId, true); return; @@ -81,13 +81,13 @@ void BbdouCredits::drawNextLine() { void charToWChar(const char *text, uint16 *wtext, uint size) { while (*text != 0 && size > 1) { *wtext++ = (byte)*text++; - /* + /* byte c = (byte)*text++; if (c > 127) c = 32; *wtext = c; - debug("%04X", *wtext); + debug("%04X", *wtext); ++wtext; - */ + */ --size; } *wtext++ = 0; @@ -99,7 +99,7 @@ void BbdouCredits::drawTextToControl(uint32 objectId, const char *text, uint ali // TODO Extract to Actor class Control *control = _vm->getObjectControl(objectId); - FontResource *font = _vm->_dict->findFont(_currFontId); + FontResource *font = _vm->_dict->findFont(_currFontId); TextDrawer textDrawer; WidthHeight dimensions; uint16 *outText; @@ -116,7 +116,7 @@ bool BbdouCredits::readNextLine(uint &leftIndex, uint &rightIndex) { int textLines = 0; leftIndex = 0; rightIndex = 0; - + do { uint lineIndex = _currLineIndex++; const char *text = getText(lineIndex); @@ -147,7 +147,7 @@ bool BbdouCredits::readNextLine(uint &leftIndex, uint &rightIndex) { } } } while (!done); - + return textLines > 0; } |