1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed rendering of bitmap fonts shadow

This commit is contained in:
Ivan Savenko 2014-08-05 18:17:57 +03:00
parent 16eb4b3267
commit 4d6ab2c32d

View File

@ -164,7 +164,7 @@ void CBitmapFont::renderCharacter(SDL_Surface * surface, const BitmapChar & char
switch(srcLine[dx]) switch(srcLine[dx])
{ {
case 1: //black "shadow" case 1: //black "shadow"
std::fill(dstPixel, dstPixel + bpp, 0); colorPutter(dstPixel, 0, 0, 0);
break; break;
case 255: //text colour case 255: //text colour
colorPutter(dstPixel, color.r, color.g, color.b); colorPutter(dstPixel, color.r, color.g, color.b);