From 7cef4cf9994f14e6464e33e84c0860729fae9059 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 7 Sep 2003 00:37:29 +0000 Subject: [PATCH] fix editor help menu runs off top edge of screen. --- stepmania/src/ScreenMiniMenu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenMiniMenu.cpp b/stepmania/src/ScreenMiniMenu.cpp index fd84f69b33..b4cf361e7c 100644 --- a/stepmania/src/ScreenMiniMenu.cpp +++ b/stepmania/src/ScreenMiniMenu.cpp @@ -22,7 +22,7 @@ const float LABEL_X = 200; const float ANSWER_X = 440; -const float SPACING_Y = 24; +const float SPACING_Y = 26; const float ZOOM_SELECTED = 0.7f; const float ZOOM_NOT_SELECTED = 0.5f; @@ -52,8 +52,7 @@ ScreenMiniMenu::ScreenMiniMenu( Menu* pDef, ScreenMessage SM_SendOnOK, ScreenMes m_Background.LoadFromAniDir( THEME->GetPathToB("ScreenMiniMenu background") ); this->AddChild( &m_Background ); - - float fHeightOfAll = (m_Def.rows.size()-1)*SPACING_Y; + float fHeightOfAll = min( SCREEN_HEIGHT-80, (m_Def.rows.size()-1)*SPACING_Y ); m_textTitle.LoadFromFont( THEME->GetPathToF("Common normal") ); m_textTitle.SetText( m_Def.title );