- November 1, 2007
- 79
- 33
- Home Country
- Germany
Hi,
here is the Patch for the bug 0002297. (I'm on rev. 23209)
The problem was, that the changing alpha-values in the transformationmatrix was not used.
There were two lines in "GUITextScrollUpControl.cs":
Line 310:
Original:
New:
Line 324:
Original:
New:
So, the Alpha-Values get Mixed correctly and the fading for the Scroll-Up-Textes will work.
Greetings,
Christian
here is the Patch for the bug 0002297. (I'm on rev. 23209)
The problem was, that the changing alpha-values in the transformationmatrix was not used.
There were two lines in "GUITextScrollUpControl.cs":
Line 310:
Original:
Code:
_font.DrawTextWidth(x, (float)dwPosY + ioffy, [B]_textColor[/B], wszText2.Trim(), fTextWidth, _textAlignment);
Code:
_font.DrawTextWidth(x, (float)dwPosY + ioffy, [B](uint)GUIGraphicsContext.MergeAlpha((uint)_textColor)[/B], wszText2.Trim(), fTextWidth, _textAlignment);
Line 324:
Original:
Code:
_font.DrawTextWidth(x, (float)dwPosY + ioffy, [B]_textColor[/B], wszText1.Trim(), (float)dMaxWidth, _textAlignment);
New:
Code:
_font.DrawTextWidth(x, (float)dwPosY + ioffy,[B] (uint)GUIGraphicsContext.MergeAlpha((uint)_textColor)[/B], wszText1.Trim(), (float)dMaxWidth, _textAlignment);
So, the Alpha-Values get Mixed correctly and the fading for the Scroll-Up-Textes will work.
Greetings,
Christian