Try to stop picking up inline images as cdtitles.

This commit is contained in:
Glenn Maynard
2003-04-22 20:56:53 +00:00
parent 8d86f6bf6a
commit 083a07738f
+9 -1
View File
@@ -635,7 +635,15 @@ void Song::TidyUpData()
m_sBannerFile = arrayImages[i];
continue;
}
if( !HasCDTitle() && width<=100 && height<=50 )
/* Agh. DWI's inline title images are triggering this, resulting in kanji,
* etc., being used as a CDTitle for songs with none. Some sample data
* from random incarnatoins:
* 42x50 35x50 50x50 144x49
* It looks like ~50 height is what people use to align to DWI's font.
*
* My tallest CDTitle is 44. Let's cut off in the middle and hope for
* the best. */
if( !HasCDTitle() && width<=100 && height<=48 )
{
m_sCDTitleFile = arrayImages[i];
continue;