remove unused StrokeIsUnder

This commit is contained in:
Chris Danford
2008-07-04 22:44:20 +00:00
parent 258a25c6e0
commit 3175fcc1aa
3 changed files with 6 additions and 25 deletions
+6 -21
View File
@@ -537,17 +537,6 @@ bool BitmapText::EarlyAbortDraw() const
return m_wTextLines.empty();
}
#define DRAW_STROKE \
if( m_StrokeColor.a > 0 ) \
{ \
RageColor c = m_StrokeColor; \
c.a *= m_pTempState->diffuse[0].a; \
for( unsigned i=0; i<m_aVertices.size(); i++ ) \
m_aVertices[i].c = c; \
DrawChars( true ); \
}
// draw text at x, y using colorTop blended down to colorBottom, with size multiplied by scale
void BitmapText::DrawPrimitives()
{
@@ -577,9 +566,13 @@ void BitmapText::DrawPrimitives()
//
// render the stroke
//
if( m_pFont->GetStrokeIsUnder() )
if( m_StrokeColor.a > 0 )
{
DRAW_STROKE;
RageColor c = m_StrokeColor;
c.a *= m_pTempState->diffuse[0].a;
for( unsigned i=0; i<m_aVertices.size(); i++ )
m_aVertices[i].c = c;
DrawChars( true );
}
//
@@ -668,14 +661,6 @@ void BitmapText::DrawPrimitives()
m_aVertices[i+3].p -= jitter; // top right
}
}
//
// render the stroke
//
if( !m_pFont->GetStrokeIsUnder() )
{
DRAW_STROKE;
}
}
/* render the glow pass */