Revert my original font change. I did mostly fix my optimization for it but it really was problematic. This whole block would probably have to be written differently.
This commit is contained in:
+1
-8
@@ -328,9 +328,6 @@ void BitmapText::DrawChars( bool bUseStrokeTexture )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<RageSpriteVertex*> vertices;
|
|
||||||
int iNumVertsToDraw = 0;
|
|
||||||
|
|
||||||
for( int start = iStartGlyph; start < iEndGlyph; )
|
for( int start = iStartGlyph; start < iEndGlyph; )
|
||||||
{
|
{
|
||||||
int end = start;
|
int end = start;
|
||||||
@@ -352,15 +349,11 @@ void BitmapText::DrawChars( bool bUseStrokeTexture )
|
|||||||
* there should probably be a "don't care" texture wrapping mode set in Actor. -Chris */
|
* there should probably be a "don't care" texture wrapping mode set in Actor. -Chris */
|
||||||
Actor::SetTextureRenderStates();
|
Actor::SetTextureRenderStates();
|
||||||
|
|
||||||
RageSpriteVertex &start_vertex = m_aVertices[start*4];
|
DISPLAY->DrawQuads( &m_aVertices[start*4], (end-start)*4);
|
||||||
vertices.push_back(&start_vertex);
|
|
||||||
iNumVertsToDraw += (end-start)*4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start = end;
|
start = end;
|
||||||
}
|
}
|
||||||
if (!vertices.empty())
|
|
||||||
DISPLAY->DrawQuads( vertices[0], iNumVertsToDraw );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sText is UTF-8. If not all of the characters in sText are available in the
|
/* sText is UTF-8. If not all of the characters in sText are available in the
|
||||||
|
|||||||
Reference in New Issue
Block a user