From 16e26812258295ea00d6e378f60e78844802d527 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 12 Aug 2005 23:39:26 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenTextEntry.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index cdfe65c9f4..4bc985f132 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -26,16 +26,6 @@ static const char* g_szKeys[NUM_KEYBOARD_ROWS][KEYS_PER_ROW] = static Preference g_bAllowOldKeyboardInput( "AllowOldKeyboardInput", true ); -static float GetButtonX( int x ) -{ - return roundf( SCALE( x, 0, KEYS_PER_ROW-1, SCREEN_LEFT+100, SCREEN_RIGHT-100 ) ); -} - -static float GetButtonY( KeyboardRow r ) -{ - return roundf( SCALE( r, 0, NUM_KEYBOARD_ROWS-1, SCREEN_CENTER_Y-30, SCREEN_BOTTOM-80 ) ); -} - CString ScreenTextEntry::s_sLastAnswer = ""; void ScreenTextEntry::TextEntry( @@ -160,7 +150,9 @@ void ScreenTextEntry::BeginScreen() for( int x=0; x