move pref

This commit is contained in:
Glenn Maynard
2007-05-13 22:02:59 +00:00
parent 97720709fb
commit 5bcf3786ba
3 changed files with 3 additions and 3 deletions
+3 -1
View File
@@ -21,6 +21,8 @@
#include "Banner.h"
static Preference<bool> g_bPalettedBannerCache( "PalettedBannerCache", false );
/* Neither a global or a file scope static can be used for this because
* the order of initialization of nonlocal objects is unspecified. */
//const RString BANNER_CACHE_INDEX = SpecialFiles::CACHE_DIR + "banners.cache";
@@ -458,7 +460,7 @@ void BannerCache::CacheBannerInternal( RString sBannerPath )
* one cached banner into a texture at once, and the speed hit may not matter on
* newer ATI cards. RGBA is safer, though.
*/
if( PREFSMAN->m_bPalettedBannerCache )
if( g_bPalettedBannerCache )
{
if( pImage->fmt.BytesPerPixel != 1 )
RageSurfaceUtils::Palettize( pImage );