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 );
-1
View File
@@ -159,7 +159,6 @@ PrefsManager::PrefsManager() :
m_bDelayedTextureDelete ( "DelayedTextureDelete", true ),
m_bDelayedModelDelete ( "DelayedModelDelete", false ),
m_BannerCache ( "BannerCache", BNCACHE_LOW_RES_PRELOAD ),
m_bPalettedBannerCache ( "PalettedBannerCache", false ),
m_bFastLoad ( "FastLoad", false ),
m_bFastLoadAdditionalSongs ( "FastLoadAdditionalSongs", false ),
-1
View File
@@ -121,7 +121,6 @@ public:
Preference<bool> m_bDelayedTextureDelete;
Preference<bool> m_bDelayedModelDelete;
Preference<BannerCacheMode> m_BannerCache;
Preference<bool> m_bPalettedBannerCache;
Preference<bool> m_bFastLoad;
Preference<bool> m_bFastLoadAdditionalSongs;