Fix transparency of fallback characters

This commit is contained in:
Flakebi 2015-02-21 18:06:27 +01:00
parent 359582d0e6
commit a371338c14
2 changed files with 4 additions and 4 deletions

View File

@ -7,5 +7,5 @@ out vec4 FragColor;
void main()
{
vec4 res = texture(tex, uv);
FragColor = vec4(res.xyz * col.xyz, res.a);
FragColor = res * col;
}

View File

@ -668,9 +668,9 @@ void ScalableFont::doDraw(const core::stringw& text,
if (fallback[n])
{
// TODO: don't hardcode colors?
static video::SColor orange(color.getAlpha(), 255, 100, 0);
static video::SColor yellow(color.getAlpha(), 255, 220, 15);
video::SColor title_colors[] = {yellow, orange, orange, yellow};
video::SColor orange(color.getAlpha(), 255, 100, 0);
video::SColor yellow(color.getAlpha(), 255, 220, 15);
video::SColor title_colors[] = {orange, yellow, orange, yellow};
if (charCollector != NULL)
{