cleanup PREFSMAN->m_bForceMipMaps
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "RageTypes.h"
|
#include "RageTypes.h"
|
||||||
#include "arch/Dialog/Dialog.h"
|
#include "arch/Dialog/Dialog.h"
|
||||||
#include "PrefsManager.h"
|
|
||||||
#include "RageSurface.h"
|
#include "RageSurface.h"
|
||||||
#include "RageSurfaceUtils.h"
|
#include "RageSurfaceUtils.h"
|
||||||
|
|
||||||
@@ -91,10 +90,6 @@ void RageBitmapTexture::Create()
|
|||||||
actualID.iAlphaBits = 1;
|
actualID.iAlphaBits = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// let texture hints override the global setting
|
|
||||||
if( PREFSMAN->m_bForceMipMaps )
|
|
||||||
actualID.bMipMaps = true;
|
|
||||||
|
|
||||||
// look in the file name for a format hints
|
// look in the file name for a format hints
|
||||||
CString HintString = GetID().filename + actualID.AdditionalTextureHints;
|
CString HintString = GetID().filename + actualID.AdditionalTextureHints;
|
||||||
HintString.MakeLower();
|
HintString.MakeLower();
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ void RageTextureManager::AdjustTextureID(RageTextureID &ID) const
|
|||||||
if( ID.iColorDepth == -1 )
|
if( ID.iColorDepth == -1 )
|
||||||
ID.iColorDepth = m_Prefs.m_iTextureColorDepth;
|
ID.iColorDepth = m_Prefs.m_iTextureColorDepth;
|
||||||
ID.iMaxSize = min( ID.iMaxSize, m_Prefs.m_iMaxTextureResolution );
|
ID.iMaxSize = min( ID.iMaxSize, m_Prefs.m_iMaxTextureResolution );
|
||||||
|
if( m_Prefs.m_bMipMaps )
|
||||||
|
ID.bMipMaps = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If you've set up a texture yourself, register it here so it can be referenced
|
/* If you've set up a texture yourself, register it here so it can be referenced
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ struct RageTextureManagerPrefs
|
|||||||
int m_iMovieColorDepth;
|
int m_iMovieColorDepth;
|
||||||
bool m_bDelayedDelete;
|
bool m_bDelayedDelete;
|
||||||
int m_iMaxTextureResolution;
|
int m_iMaxTextureResolution;
|
||||||
|
bool m_bMipMaps;
|
||||||
|
|
||||||
RageTextureManagerPrefs()
|
RageTextureManagerPrefs()
|
||||||
{
|
{
|
||||||
@@ -22,17 +23,20 @@ struct RageTextureManagerPrefs
|
|||||||
m_iMovieColorDepth = 16;
|
m_iMovieColorDepth = 16;
|
||||||
m_iTextureColorDepth = 16;
|
m_iTextureColorDepth = 16;
|
||||||
m_iMaxTextureResolution = 1024;
|
m_iMaxTextureResolution = 1024;
|
||||||
|
m_bMipMaps = false;
|
||||||
}
|
}
|
||||||
RageTextureManagerPrefs(
|
RageTextureManagerPrefs(
|
||||||
int iTextureColorDepth,
|
int iTextureColorDepth,
|
||||||
int iMovieColorDepth,
|
int iMovieColorDepth,
|
||||||
bool bDelayedDelete,
|
bool bDelayedDelete,
|
||||||
int iMaxTextureResolution )
|
int iMaxTextureResolution,
|
||||||
|
bool bMipMaps )
|
||||||
{
|
{
|
||||||
m_bDelayedDelete = bDelayedDelete ;
|
m_bDelayedDelete = bDelayedDelete;
|
||||||
m_iMovieColorDepth = iMovieColorDepth;
|
m_iMovieColorDepth = iMovieColorDepth;
|
||||||
m_iTextureColorDepth = iTextureColorDepth;
|
m_iTextureColorDepth = iTextureColorDepth;
|
||||||
m_iMaxTextureResolution = iMaxTextureResolution;
|
m_iMaxTextureResolution = iMaxTextureResolution;
|
||||||
|
m_bMipMaps = bMipMaps;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=( const RageTextureManagerPrefs& rhs )
|
bool operator!=( const RageTextureManagerPrefs& rhs )
|
||||||
@@ -41,7 +45,8 @@ struct RageTextureManagerPrefs
|
|||||||
m_iTextureColorDepth != rhs.m_iTextureColorDepth ||
|
m_iTextureColorDepth != rhs.m_iTextureColorDepth ||
|
||||||
m_iMovieColorDepth != rhs.m_iMovieColorDepth ||
|
m_iMovieColorDepth != rhs.m_iMovieColorDepth ||
|
||||||
m_bDelayedDelete != rhs.m_bDelayedDelete ||
|
m_bDelayedDelete != rhs.m_bDelayedDelete ||
|
||||||
m_iMaxTextureResolution != rhs.m_iMaxTextureResolution;
|
m_iMaxTextureResolution != rhs.m_iMaxTextureResolution ||
|
||||||
|
m_bMipMaps != rhs.m_bMipMaps;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,8 @@ void ApplyGraphicOptions()
|
|||||||
PREFSMAN->m_iTextureColorDepth,
|
PREFSMAN->m_iTextureColorDepth,
|
||||||
PREFSMAN->m_iMovieColorDepth,
|
PREFSMAN->m_iMovieColorDepth,
|
||||||
PREFSMAN->m_bDelayedTextureDelete,
|
PREFSMAN->m_bDelayedTextureDelete,
|
||||||
PREFSMAN->m_iMaxTextureResolution
|
PREFSMAN->m_iMaxTextureResolution,
|
||||||
|
PREFSMAN->m_bForceMipMaps
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -1074,7 +1075,8 @@ int main(int argc, char* argv[])
|
|||||||
PREFSMAN->m_iTextureColorDepth,
|
PREFSMAN->m_iTextureColorDepth,
|
||||||
PREFSMAN->m_iMovieColorDepth,
|
PREFSMAN->m_iMovieColorDepth,
|
||||||
PREFSMAN->m_bDelayedTextureDelete,
|
PREFSMAN->m_bDelayedTextureDelete,
|
||||||
PREFSMAN->m_iMaxTextureResolution
|
PREFSMAN->m_iMaxTextureResolution,
|
||||||
|
PREFSMAN->m_bForceMipMaps
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user