From 763738cafa22c4aeca6149c724e76de204f3a236 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 1 Sep 2006 07:46:08 +0000 Subject: [PATCH] Const. --- stepmania/src/OptionsCursor.cpp | 2 +- stepmania/src/OptionsCursor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/OptionsCursor.cpp b/stepmania/src/OptionsCursor.cpp index 2ff5b31127..c7fe983015 100644 --- a/stepmania/src/OptionsCursor.cpp +++ b/stepmania/src/OptionsCursor.cpp @@ -141,7 +141,7 @@ void OptionsCursorPlus::SetBarWidth( int iWidth ) m_sprCanGoRight->SetX( m_sprRight.GetDestX() ); } -int OptionsCursor::GetBarWidth() +int OptionsCursor::GetBarWidth() const { float fWidth = m_sprLeft.GetZoomX() * m_sprLeft.GetUnzoomedWidth(); return (int)fWidth; diff --git a/stepmania/src/OptionsCursor.h b/stepmania/src/OptionsCursor.h index 0d48d98744..1bc144108e 100644 --- a/stepmania/src/OptionsCursor.h +++ b/stepmania/src/OptionsCursor.h @@ -22,7 +22,7 @@ public: void StopTweening(); void BeginTweening( float fSecs ); void SetBarWidth( int iWidth ); - int GetBarWidth(); + int GetBarWidth() const; protected: