From d07dc2335af3c6f231e765e97c3087d3c6801ed7 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 16 Oct 2006 07:30:25 +0000 Subject: [PATCH] static. --- stepmania/src/ScreenNameEntry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenNameEntry.cpp b/stepmania/src/ScreenNameEntry.cpp index 050dd70be3..e20d6c34ef 100644 --- a/stepmania/src/ScreenNameEntry.cpp +++ b/stepmania/src/ScreenNameEntry.cpp @@ -61,7 +61,7 @@ const char NAME_CHARS[] = #define HEIGHT_OF_ALL_CHARS (NUM_NAME_CHARS * g_fCharsSpacingY) -int GetClosestCharIndex( float fFakeBeat ) +static int GetClosestCharIndex( float fFakeBeat ) { int iCharIndex = (int)roundf(fFakeBeat) % NUM_NAME_CHARS; ASSERT( iCharIndex >= 0 ); @@ -69,7 +69,7 @@ int GetClosestCharIndex( float fFakeBeat ) } // return value is relative to gray arrows -float GetClosestCharYOffset( float fFakeBeat ) +static float GetClosestCharYOffset( float fFakeBeat ) { float f = fmodf(fFakeBeat, 1.0f); if( f > 0.5f ) @@ -79,7 +79,7 @@ float GetClosestCharYOffset( float fFakeBeat ) } // return value is relative to gray arrows -float GetClosestCharYPos( float fFakeBeat ) +static float GetClosestCharYPos( float fFakeBeat ) { return GetClosestCharYOffset(fFakeBeat)*g_fCharsSpacingY; }