From 77a529fa794bcc63d9161303844af7a18a4301b6 Mon Sep 17 00:00:00 2001 From: xwidghet Date: Thu, 21 Dec 2017 04:04:26 -0800 Subject: [PATCH] Revert "don't render shadows... they dont even work according to other comments on the matter" There appears to be minimal fps hit with the optimized DrawChars function, but if this becomes an issue I can implement a faster one. This reverts commit ce38224b6030687850d2ef32ed8a4837bc1a6386. --- src/BitmapText.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/BitmapText.cpp b/src/BitmapText.cpp index 67747918cf..bf236f8fa5 100644 --- a/src/BitmapText.cpp +++ b/src/BitmapText.cpp @@ -700,6 +700,21 @@ void BitmapText::DrawPrimitives() // Draw if we're not fully transparent or the zbuffer is enabled if( m_pTempState->diffuse[0].a != 0 ) { + // render the shadow + if( m_fShadowLengthX != 0 || m_fShadowLengthY != 0 ) + { + DISPLAY->PushMatrix(); + DISPLAY->TranslateWorld( m_fShadowLengthX, m_fShadowLengthY, 0 ); + + RageColor c = m_ShadowColor; + c.a *= m_pTempState->diffuse[0].a; + for( unsigned i=0; iPopMatrix(); + } + // render the stroke RageColor stroke_color= GetCurrStrokeColor(); if( stroke_color.a > 0 )