From 083a07738f2faed2e0a067f38db89e7341d176cc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 22 Apr 2003 20:56:53 +0000 Subject: [PATCH] Try to stop picking up inline images as cdtitles. --- stepmania/src/Song.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 3b98de37e8..38ded16a6e 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -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;