diff options
author | Sven Hesse | 2011-01-16 22:29:18 +0000 |
---|---|---|
committer | Sven Hesse | 2011-01-16 22:29:18 +0000 |
commit | 58228919fcf0cb669684a69d42fffedf20a0a074 (patch) | |
tree | 2355742bd51d3695e60d40cb69abe38debc6e2f6 /engines/gob | |
parent | 0d11ae143f8734ddf0632e9981558120acbabd28 (diff) | |
download | scummvm-rg350-58228919fcf0cb669684a69d42fffedf20a0a074.tar.gz scummvm-rg350-58228919fcf0cb669684a69d42fffedf20a0a074.tar.bz2 scummvm-rg350-58228919fcf0cb669684a69d42fffedf20a0a074.zip |
GOB: Use the correct font and shade color in Urban Runner
svn-id: r55272
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/draw_v2.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index ec678644d5..77ecd96f16 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -737,7 +737,7 @@ void Draw_v2::spriteOperation(int16 operation) { case DRAW_FILLRECT: _spritesArray[_destSurface]->fillRect(destSpriteX, _destSpriteY, _destSpriteX + _spriteRight - 1, - _destSpriteY + _spriteBottom - 1, _backColor); + _destSpriteY + _spriteBottom - 1, getColor(_backColor)); dirtiedRect(_destSurface, _destSpriteX, _destSpriteY, _destSpriteX + _spriteRight - 1, _destSpriteY + _spriteBottom - 1); @@ -794,17 +794,19 @@ void Draw_v2::spriteOperation(int16 operation) { len = *dataBuf++; for (int i = 0; i < len; i++, dataBuf += 2) { font->drawLetter(*_spritesArray[_destSurface], READ_LE_UINT16(dataBuf), - _destSpriteX, _destSpriteY, _frontColor, _backColor, _transparency); + _destSpriteX, _destSpriteY, getColor(_frontColor), + getColor(_backColor), _transparency); } } else { - drawString(_textToPrint, _destSpriteX, _destSpriteY, _frontColor, - _backColor, _transparency, *_spritesArray[_destSurface], *font); + drawString(_textToPrint, _destSpriteX, _destSpriteY, getColor(_frontColor), + getColor(_backColor), _transparency, *_spritesArray[_destSurface], *font); _destSpriteX += len * font->getCharWidth(); } } else { for (int i = 0; i < len; i++) { font->drawLetter(*_spritesArray[_destSurface], _textToPrint[i], - _destSpriteX, _destSpriteY, _frontColor, _backColor, _transparency); + _destSpriteX, _destSpriteY, getColor(_frontColor), + getColor(_backColor), _transparency); _destSpriteX += font->getCharWidth(_textToPrint[i]); } } @@ -865,7 +867,7 @@ void Draw_v2::spriteOperation(int16 operation) { if ((_backColor != 16) && (_backColor != 144)) { _spritesArray[_destSurface]->fillRect(_destSpriteX, _destSpriteY, _spriteRight, _spriteBottom, - _backColor); + getColor(_backColor)); } dirtiedRect(_destSurface, _destSpriteX, _destSpriteY, _spriteRight, _spriteBottom); @@ -873,7 +875,7 @@ void Draw_v2::spriteOperation(int16 operation) { case DRAW_FILLRECTABS: _spritesArray[_destSurface]->fillRect(_destSpriteX, _destSpriteY, - _spriteRight, _spriteBottom, _backColor); + _spriteRight, _spriteBottom, getColor(_backColor)); dirtiedRect(_destSurface, _destSpriteX, _destSpriteY, _spriteRight, _spriteBottom); break; |