diff options
author | yinsimei | 2017-07-03 21:22:36 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 9a57db6b9c45363605bd7e33a2428fff88d28652 (patch) | |
tree | 974a76173bd358e9e775f767fa1c558d59ef5806 /engines/sludge | |
parent | 3b3c92558bbda6439d74d6fce77f754b83bbdd28 (diff) | |
download | scummvm-rg350-9a57db6b9c45363605bd7e33a2428fff88d28652.tar.gz scummvm-rg350-9a57db6b9c45363605bd7e33a2428fff88d28652.tar.bz2 scummvm-rg350-9a57db6b9c45363605bd7e33a2428fff88d28652.zip |
SLUDGE: correct text color for png font
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/sprites.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index e31f66d018..dc3dc82205 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -317,7 +317,7 @@ void pasteSpriteToBackDrop(int x1, int y1, sprite &single, const spritePalette & x1 -= single.xhot; y1 -= single.yhot; Graphics::TransparentSurface tmp(single.surface, false); - tmp.blit(backdropSurface, x1, y1); + tmp.blit(backdropSurface, x1, y1, Graphics::FLIP_NONE, nullptr, TS_RGB(fontPal.originalRed, fontPal.originalGreen, fontPal.originalBlue)); #if 0 float tx1 = (float)(single.tex_x) / fontPal.tex_w[single.texNum]; float ty1 = 0.0; @@ -530,7 +530,7 @@ void fontSprite(bool flip, int x, int y, sprite &single, const spritePalette &fo // Use Transparent surface to scale and blit Graphics::TransparentSurface tmp(single.surface, false); - tmp.blit(renderSurface, x1, y1, (flip ? Graphics::FLIP_H : Graphics::FLIP_NONE)); + tmp.blit(renderSurface, x1, y1, (flip ? Graphics::FLIP_H : Graphics::FLIP_NONE), 0, TS_RGB(fontPal.originalRed, fontPal.originalGreen, fontPal.originalBlue)); if (single.burnSurface.getPixels() != nullptr) { Graphics::TransparentSurface tmp2(single.burnSurface, false); |