Skip to content

Commit

Permalink
Fixed: Font renderer calculated the fade-in shadow multiplier back to…
Browse files Browse the repository at this point in the history
… front.
  • Loading branch information
danij-deng committed May 22, 2011
1 parent c44a2d8 commit d123b04
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions doomsday/engine/portable/src/gl_font.c
Expand Up @@ -641,14 +641,26 @@ static void drawTextFragment(const char* string, int x, int y, short flags,
}
else
{
if(count + 1 == maxCount)
shadowMul *= .75f;
if(count == maxCount)
{
shadowMul = 0;
}
else if(count + 1 == maxCount)
{
shadowMul *= .25f;
}
else if(count + 2 == maxCount)
{
shadowMul *= .5f;
}
else if(count + 3 == maxCount)
shadowMul *= .25f;
{
shadowMul *= .75f;
}
else if(count > maxCount)
{
break;
}
}
}
count++;
Expand Down

0 comments on commit d123b04

Please sign in to comment.