From 233521f120911c38947872251abefb32fa238c2f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 21 Sep 2006 20:34:50 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageBitmapTexture.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 27ab3924d1..249dc900fa 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -82,10 +82,10 @@ void RageBitmapTexture::Create() { /* Do this after setting the color key for paletted images; it'll also return * TRAIT_NO_TRANSPARENCY if the color key is never used. */ - int traits = RageSurfaceUtils::FindSurfaceTraits( pImg ); - if( traits & RageSurfaceUtils::TRAIT_NO_TRANSPARENCY ) + int iTraits = RageSurfaceUtils::FindSurfaceTraits( pImg ); + if( iTraits & RageSurfaceUtils::TRAIT_NO_TRANSPARENCY ) actualID.iAlphaBits = 0; - else if( traits & RageSurfaceUtils::TRAIT_BOOL_TRANSPARENCY ) + else if( iTraits & RageSurfaceUtils::TRAIT_BOOL_TRANSPARENCY ) actualID.iAlphaBits = 1; } @@ -94,7 +94,7 @@ void RageBitmapTexture::Create() sHintString.MakeLower(); if( sHintString.find("32bpp") != string::npos ) actualID.iColorDepth = 32; - else if( sHintString.find("16bpp") != string::npos ) actualID.iColorDepth = 16; + else if( sHintString.find("16bpp") != string::npos ) actualID.iColorDepth = 16; if( sHintString.find("dither") != string::npos ) actualID.bDither = true; if( sHintString.find("stretch") != string::npos ) actualID.bStretch = true; if( sHintString.find("mipmaps") != string::npos ) actualID.bMipMaps = true; @@ -107,7 +107,7 @@ void RageBitmapTexture::Create() /* This indicates that the only component in the texture is alpha; assume all * color is white. */ - if( sHintString.find("alphamap") != string::npos ) actualID.iGrayscaleBits = 0; + if( sHintString.find("alphamap") != string::npos ) actualID.iGrayscaleBits = 0; /* No iGrayscaleBits for images that are already paletted. We don't support * that; and that hint is intended for use on images that are already grayscale,