fix uppercase has no effect if set after settext
This commit is contained in:
@@ -464,6 +464,12 @@ void BitmapText::SetMaxHeight( float fMaxHeight )
|
|||||||
UpdateBaseZoom();
|
UpdateBaseZoom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BitmapText::SetUppercase( bool b )
|
||||||
|
{
|
||||||
|
m_bUppercase = b;
|
||||||
|
BuildChars();
|
||||||
|
}
|
||||||
|
|
||||||
void BitmapText::UpdateBaseZoom()
|
void BitmapText::UpdateBaseZoom()
|
||||||
{
|
{
|
||||||
if( m_fMaxWidth == 0 )
|
if( m_fMaxWidth == 0 )
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public:
|
|||||||
virtual bool EarlyAbortDraw() const;
|
virtual bool EarlyAbortDraw() const;
|
||||||
virtual void DrawPrimitives();
|
virtual void DrawPrimitives();
|
||||||
|
|
||||||
void SetUppercase( bool b ) { m_bUppercase = b; }
|
void SetUppercase( bool b );
|
||||||
void SetRainbowScroll( bool b ) { m_bRainbowScroll = b; }
|
void SetRainbowScroll( bool b ) { m_bRainbowScroll = b; }
|
||||||
void SetJitter( bool b ) { m_bJitter = b; }
|
void SetJitter( bool b ) { m_bJitter = b; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user