Browse Source

Fixed rendering of bitmap fonts shadow

Ivan Savenko 11 years ago
parent
commit
4d6ab2c32d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/gui/Fonts.cpp

+ 1 - 1
client/gui/Fonts.cpp

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