detect square (diagonal) banners, and give a small margin of error

This commit is contained in:
Glenn Maynard
2003-06-16 18:26:24 +00:00
parent 568e27849e
commit 5e1cde48fb
4 changed files with 20 additions and 2 deletions
+8
View File
@@ -27,6 +27,7 @@
#include "FontCharAliases.h"
#include "TitleSubstitution.h"
#include "BannerCache.h"
#include "CroppedSprite.h"
#include "NotesLoaderSM.h"
#include "NotesLoaderDWI.h"
@@ -670,6 +671,13 @@ void Song::TidyUpData()
m_sBackgroundFile = arrayImages[i];
continue;
}
if( CroppedSprite::IsDiagonalBanner(width, height) )
{
m_sBannerFile = arrayImages[i];
continue;
}
if( !HasBanner() && 100<=width && width<=320 && 50<=height && height<=240 )
{
m_sBannerFile = arrayImages[i];