move pref
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 ),
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user