diff options
author | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
commit | 696897b0583ad52ebc6f7666525277847619a8ce (patch) | |
tree | 5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /engines/m4/font.cpp | |
parent | 05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff) | |
download | scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2 scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip |
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'engines/m4/font.cpp')
-rw-r--r-- | engines/m4/font.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/m4/font.cpp b/engines/m4/font.cpp index 119e7297cf..a0ca27f745 100644 --- a/engines/m4/font.cpp +++ b/engines/m4/font.cpp @@ -55,7 +55,7 @@ void Font::setFont(const char *filename) { void Font::setFontM4(const char *filename) { Common::SeekableReadStream *fontFile = _vm->res()->openFile(filename); - + if (fontFile->readUint32LE() != MKID_BE('FONT')) { printf("Font::Font: FONT tag expected\n"); return; @@ -64,7 +64,7 @@ void Font::setFontM4(const char *filename) { _maxHeight = fontFile->readByte(); _maxWidth = fontFile->readByte(); uint32 fontSize = fontFile->readUint32LE(); - + //printf("Font::Font: _maxWidth = %d, _maxHeight = %d, fontSize = %d\n", _maxWidth, _maxHeight, fontSize); if (fontFile->readUint32LE() != MKID_BE('WIDT')) { @@ -137,8 +137,8 @@ Font::~Font() { void Font::setColor(uint8 color) { if (_sysFont) _fontColors[1] = color; - else - _fontColors[3] = color; + else + _fontColors[3] = color; } void Font::setColors(uint8 alt1, uint8 alt2, uint8 foreground) { @@ -166,7 +166,7 @@ int32 Font::write(M4Surface *surface, const char *text, int x, int y, int width, x++; y++; - + int skipY = 0; if (y < 0) { skipY = -y; @@ -194,7 +194,7 @@ int32 Font::write(M4Surface *surface, const char *text, int x, int y, int width, unsigned char theChar = (*text++) & 0x7F; int charWidth = _charWidths[theChar]; - + if (charWidth > 0) { if (xPos + charWidth >= width) @@ -244,7 +244,7 @@ int32 Font::write(M4Surface *surface, const char *text, int x, int y, int width, } xPos += charWidth + spaceWidth; - + } surface->freeData(); |