Use new single-color overload in font where possible

This commit is contained in:
Marianne Gagnon 2014-03-22 19:38:48 -04:00
parent a21d162d5a
commit ce1cbd44da

View File

@ -602,8 +602,6 @@ void ScalableFont::draw(const core::stringw& text,
core::rect<s32> dest(offsets[n] + core::position2di(0, y_shift), size);
video::SColor colors[] = {color, color, color, color};
video::ITexture* texture = (fallback[n] ?
m_fallback_font->SpriteBank->getTexture(texID) :
SpriteBank->getTexture(texID) );
@ -644,7 +642,6 @@ void ScalableFont::draw(const core::stringw& text,
{
// draw black border
video::SColor black(color.getAlpha(),0,0,0);
video::SColor black_colors[] = {black, black, black, black};
for (int x_delta=-2; x_delta<=2; x_delta++)
{
@ -655,7 +652,7 @@ void ScalableFont::draw(const core::stringw& text,
dest + core::position2d<s32>(x_delta, y_delta),
source,
clip,
black_colors, true);
black, true);
}
}
}
@ -678,7 +675,7 @@ void ScalableFont::draw(const core::stringw& text,
dest,
source,
clip,
colors, true);
color, true);
#ifdef FONT_DEBUG
driver->draw2DLine(core::position2d<s32>(dest.UpperLeftCorner.X, dest.UpperLeftCorner.Y),