diff --git a/Manual/index.html b/Manual/index.html index a05277aeab..56251f96ed 100644 --- a/Manual/index.html +++ b/Manual/index.html @@ -70,7 +70,7 @@ specialized controllers.
However, we highly recommend at least these settings for decent performance:
-On Windows, DirectX 8.0 is required in order to install StepMania. If DirectX +
On Windows, DirectX 9.0 is required in order to install StepMania. If DirectX is not installed on your computer, the StepMania installer will abort the installation with a warning.
diff --git a/Themes/_fallback/Fonts/_16px fonts.ini b/Themes/_fallback/Fonts/_16px fonts.ini index d56c851b17..23ad8678b0 100644 --- a/Themes/_fallback/Fonts/_16px fonts.ini +++ b/Themes/_fallback/Fonts/_16px fonts.ini @@ -5,4 +5,4 @@ # have them pulled in for every 16-pixel font. # xxx: we don't have 16px japanese or korean fonts [main] -import=_Thai 16px,_misc 16px,_game chars 16px +import=_Thai 16px,_misc 16px,_game chars 16px,_ui chars 16px diff --git a/Themes/_fallback/Fonts/_20px fonts.ini b/Themes/_fallback/Fonts/_20px fonts.ini index 915647249d..41104ffbc0 100644 --- a/Themes/_fallback/Fonts/_20px fonts.ini +++ b/Themes/_fallback/Fonts/_20px fonts.ini @@ -10,4 +10,4 @@ # The characters in _game chars 16px are actually very large; # they'll look fine here, too. -import=_japanese 24px,_korean 24px,_game chars 16px,_misc 16px +import=_japanese 24px,_korean 24px,_game chars 16px,_ui chars 16px,_misc 16px diff --git a/Themes/_fallback/Fonts/_ui chars 16px [main-stroke] 1x1.png b/Themes/_fallback/Fonts/_ui chars 16px [main-stroke] 1x1.png new file mode 100644 index 0000000000..5fcc04eb73 Binary files /dev/null and b/Themes/_fallback/Fonts/_ui chars 16px [main-stroke] 1x1.png differ diff --git a/Themes/_fallback/Fonts/_ui chars 16px [main] 1x1.png b/Themes/_fallback/Fonts/_ui chars 16px [main] 1x1.png new file mode 100644 index 0000000000..b503eec312 Binary files /dev/null and b/Themes/_fallback/Fonts/_ui chars 16px [main] 1x1.png differ diff --git a/Themes/_fallback/Fonts/_ui chars 16px.ini b/Themes/_fallback/Fonts/_ui chars 16px.ini new file mode 100644 index 0000000000..e9fca64617 --- /dev/null +++ b/Themes/_fallback/Fonts/_ui chars 16px.ini @@ -0,0 +1,14 @@ +# The characters in this font are actually much larger than 16 pixels. +# The "16px" indicates what size uppercase letter this font is meant +# for, not necessarily the actual size of the characters. + +[main] +0=24 + +# Don't load this font grayscale. +TextureHints=16bpp + +Top=8 +Baseline=24 + +map nextrow=0 diff --git a/Themes/_fallback/Scripts/04 LogDisplay.lua b/Themes/_fallback/Scripts/04 LogDisplay.lua index 482a73eaa7..537022be86 100644 --- a/Themes/_fallback/Scripts/04 LogDisplay.lua +++ b/Themes/_fallback/Scripts/04 LogDisplay.lua @@ -150,16 +150,8 @@ local log_display_mt= { -- and hardcoded it into BitmapText. local message= tostring(mess.message):gsub("::", ":") if params.IgnoreIdentical then - -- Use only the first line for comparison because the rest is - -- probably stack trace, with args that might vary uselessly. - self.width_tester:settext(message) - local lines= convert_text_to_indented_lines( - self.width_tester, self.indent, self.line_width, self.text_zoom) for i, prevmess in ipairs(self.message_log) do - self.width_tester:settext(prevmess) - local prevlines= convert_text_to_indented_lines( - self.width_tester, self.indent, self.line_width, self.text_zoom) - if lines[1][2] == prevmess[1][2] then return end + if message == prevmess then return end end end if params.ReplaceLinesWhenHidden and self.hidden then diff --git a/_assets/fonts/_ui chars 16px 1x1.psd b/_assets/fonts/_ui chars 16px 1x1.psd new file mode 100644 index 0000000000..1904f5bfc7 Binary files /dev/null and b/_assets/fonts/_ui chars 16px 1x1.psd differ diff --git a/src/Course.cpp b/src/Course.cpp index 3231dbed94..73528353e0 100644 --- a/src/Course.cpp +++ b/src/Course.cpp @@ -823,9 +823,24 @@ bool Course::GetTotalSeconds( StepsType st, float& fSecondsOut ) const if( !AllSongsAreFixed() ) return false; - Trail* pTrail = GetTrail( st, Difficulty_Medium ); + Trail* trail = GetTrail( st, Difficulty_Medium ); + if(!trail) + { + for(int cd= 0; cd < NUM_CourseDifficulty; ++cd) + { + trail= GetTrail(st, (CourseDifficulty)cd); + if(trail) + { + break; + } + } + if(!trail) + { + return false; + } + } - fSecondsOut = pTrail->GetLengthSeconds(); + fSecondsOut = trail->GetLengthSeconds(); return true; } diff --git a/src/NoteSkinManager.cpp b/src/NoteSkinManager.cpp index 1c226daa55..2148154829 100644 --- a/src/NoteSkinManager.cpp +++ b/src/NoteSkinManager.cpp @@ -438,14 +438,14 @@ Actor *NoteSkinManager::LoadActor( const RString &sButton, const RString &sEleme if( !PushActorTemplate(L, sButton, sElement, bSpriteOnly) ) { // ActorUtil will warn about the error - return new Sprite; + return Sprite::NewBlankSprite(); } auto_ptr