Clean up resolution fallback logic

Add video settings for G400
Working on composited text
This commit is contained in:
Chris Danford
2003-06-05 19:29:27 +00:00
parent 43819f68c6
commit 428d560a6b
31 changed files with 602 additions and 310 deletions
+13 -10
View File
@@ -49,6 +49,7 @@ bool RageTextureID::operator<(const RageTextureID &rhs) const
{
#define COMP(a) if(a<rhs.a) return true; if(a>rhs.a) return false;
COMP(filename);
COMP(text);
COMP(iMaxSize);
COMP(iMipMaps);
COMP(iAlphaBits);
@@ -63,16 +64,18 @@ bool RageTextureID::operator<(const RageTextureID &rhs) const
bool RageTextureID::operator==(const RageTextureID &rhs) const
{
#define EQUAL(a) (a==rhs.a)
return
filename == rhs.filename &&
iMaxSize == rhs.iMaxSize &&
iMipMaps == rhs.iMipMaps &&
iAlphaBits == rhs.iAlphaBits &&
iColorDepth == rhs.iColorDepth &&
iTransparencyOnly == rhs.iTransparencyOnly &&
bDither == rhs.bDither &&
bStretch == rhs.bStretch &&
bHotPinkColorKey == rhs.bHotPinkColorKey;
EQUAL(filename) &&
EQUAL(text) &&
EQUAL(iMaxSize) &&
EQUAL(iMipMaps) &&
EQUAL(iAlphaBits) &&
EQUAL(iColorDepth) &&
EQUAL(iTransparencyOnly) &&
EQUAL(bDither) &&
EQUAL(bStretch) &&
EQUAL(bHotPinkColorKey);
}
@@ -114,7 +117,7 @@ RageTexture::~RageTexture()
void RageTexture::CreateFrameRects()
{
GetFrameDimensionsFromFileName( GetFilePath(), &m_iFramesWide, &m_iFramesHigh );
GetFrameDimensionsFromFileName( GetID().filename, &m_iFramesWide, &m_iFramesHigh );
///////////////////////////////////
// Fill in the m_FrameRects with the bounds of each frame in the animation.