Disable the dimensions warning for all song graphics (even ones not in

songs).
This commit is contained in:
Glenn Maynard
2003-07-09 20:27:02 +00:00
parent 11f78783b3
commit d4815d6d74
+3 -4
View File
@@ -14,6 +14,7 @@
#include "RageBitmapTexture.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "RageTextureManager.h"
#include "RageException.h"
#include "RageDisplay.h"
#include "RageTypes.h"
@@ -311,12 +312,10 @@ apply_color_key:
bRunCheck = false;
// HACK: Don't check song graphics. Many of them are weird dimensions.
if( (actualID.filename.length()>=6 && actualID.filename.Left(6)=="Songs/") )
bRunCheck = false;
if( (actualID.filename.length()>=6 && actualID.filename.Left(9)=="CDTitles/") )
if( !TEXTUREMAN->GetOddDimensionWarning() )
bRunCheck = false;
if( bRunCheck )
if( bRunCheck )
{
float fFrameWidth = this->GetSourceWidth() / (float)this->GetFramesWide();
float fFrameHeight = this->GetSourceHeight() / (float)this->GetFramesHigh();