This commit is contained in:
Glenn Maynard
2003-11-24 02:49:30 +00:00
parent 01d7bab936
commit a511451e4b
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -94,8 +94,7 @@ void LyricDisplay::Update( float fDeltaTime )
* "Diffuse=1,1,1,0;linear,.2;Diffuse=1,1,1,1;linear,.2;LyricDiffuse"
*/
float fZoom = 1.0f;
fZoom = min(fZoom, float(SCREEN_WIDTH)/(m_textLyrics[i].GetWidestLineWidthInSourcePixels()+1) );
const float fZoom = min( 1.0f, float(SCREEN_WIDTH)/(m_textLyrics[i].GetZoomedWidth()+1) );
m_textLyrics[i].StopTweening();
m_textLyrics[i].SetZoomX(fZoom);