Fix compilation in VC6. (vc6 for scoping bug)

This commit is contained in:
Glenn Maynard
2002-08-19 18:59:58 +00:00
parent c82d2925ef
commit fc68b90acc
+6 -6
View File
@@ -254,11 +254,11 @@ void BitmapText::DrawPrimitives()
DISPLAY->TranslateLocal( m_fShadowLength, m_fShadowLength, 0 ); // shift by 5 units DISPLAY->TranslateLocal( m_fShadowLength, m_fShadowLength, 0 ); // shift by 5 units
DWORD dwColor = D3DXCOLOR(0,0,0,0.5f*m_temp_colorDiffuse[0].a); // semi-transparent black DWORD dwColor = D3DXCOLOR(0,0,0,0.5f*m_temp_colorDiffuse[0].a); // semi-transparent black
int i;
for( int i=0; i<iNumV; i++ ) for( i=0; i<iNumV; i++ )
v[i].color = dwColor; v[i].color = dwColor;
for( int i=0; i<iNumV; i+=4 ) for( i=0; i<iNumV; i+=4 )
DISPLAY->AddQuad( &v[i] ); DISPLAY->AddQuad( &v[i] );
DISPLAY->PopMatrix(); DISPLAY->PopMatrix();
@@ -300,11 +300,11 @@ void BitmapText::DrawPrimitives()
if( m_temp_colorGlow.a != 0 ) if( m_temp_colorGlow.a != 0 )
{ {
DISPLAY->SetColorDiffuse(); DISPLAY->SetColorDiffuse();
int i;
for( int i=0; i<iNumV; i++ ) for( i=0; i<iNumV; i++ )
v[i].color = m_temp_colorGlow; v[i].color = m_temp_colorGlow;
for( int i=0; i<iNumV; i+=4 ) for( i=0; i<iNumV; i+=4 )
DISPLAY->AddQuad( &v[i] ); DISPLAY->AddQuad( &v[i] );
} }