From d4815d6d74d0fcda1d4aa68426c5a805edbea6a9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 9 Jul 2003 20:27:02 +0000 Subject: [PATCH] Disable the dimensions warning for all song graphics (even ones not in songs). --- stepmania/src/RageBitmapTexture.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 1d16555bbc..6fb49376a4 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -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();