Skip to content

Commit

Permalink
Partial fix for mantis #0002836: scrolling text flashes white then go…
Browse files Browse the repository at this point in the history
…es grey

Only initial fade in has been fixed. The flickering of letters that appear while scrolling remains
  • Loading branch information
arion-p committed May 11, 2010
1 parent f4d498c commit a6deb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mediaportal/Core/guilib/GUIFadeLabel.cs
Expand Up @@ -305,9 +305,9 @@ public override void Render(float timePassed)
// Make the label fade in
if (_fadeIn && _allowScrolling)
{
long dwAlpha = (0xff / 12) * _currentFrame;
long dwAlpha = ((((uint)_textColor) >> 24) * _currentFrame) / 12;
dwAlpha <<= 24;
dwAlpha += (_textColor & 0x00ffffff);
dwAlpha |= (_textColor & 0x00ffffff);
_labelControl.TextColor = dwAlpha;
float fwt = 0;
_labelControl.Label = GetShortenedText(strLabel, _width, ref fwt);
Expand Down

0 comments on commit a6deb77

Please sign in to comment.