From d53e4337e0ad6bf735def09dc2b7d8944e530ced Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 9 Jan 2003 04:47:23 +0000 Subject: [PATCH] no alpha for static backgrounds --- stepmania/src/BGAnimationLayer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 1c8c74931b..e43d532d74 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -56,10 +56,15 @@ BGAnimationLayer::BGAnimationLayer() m_Effect = EFFECT_STRETCH_STILL; } +/* Static background layers are simple, uncomposited background images with nothing + * behind them. Since they have nothing behind them, they have no need for alpha, + * so turn that off. */ void BGAnimationLayer::LoadFromStaticGraphic( CString sPath ) { + RageTextureID ID(sPath); + ID.iAlphaBits = 0; m_iNumSprites = 1; - m_Sprites[0].LoadBG( sPath ); + m_Sprites[0].LoadBG( ID ); m_Sprites[0].StretchTo( RectI(SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM) ); }