From 99102370ca04e7732aa0cbcce502f71ea262aa18 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 25 Jul 2006 19:35:06 +0000 Subject: [PATCH] const --- stepmania/src/RageDisplay.cpp | 2 +- stepmania/src/RageDisplay.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index ad08fc45ab..6c56f59c39 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -355,7 +355,7 @@ public: } // Obtain the current matrix at the top of the stack - const RageMatrix* GetTop() { return &stack.back(); } + const RageMatrix* GetTop() const { return &stack.back(); } void SetTop( const RageMatrix &m ) { stack.back() = m; } }; diff --git a/stepmania/src/RageDisplay.h b/stepmania/src/RageDisplay.h index 669e77e9a2..b08c0e23e6 100644 --- a/stepmania/src/RageDisplay.h +++ b/stepmania/src/RageDisplay.h @@ -329,11 +329,11 @@ protected: void UpdateCentering(); // Called by the RageDisplay derivitives - const RageMatrix* GetCentering(); - const RageMatrix* GetProjectionTop(); - const RageMatrix* GetViewTop(); - const RageMatrix* GetWorldTop(); - const RageMatrix* GetTextureTop(); + const RageMatrix* GetCentering() const; + const RageMatrix* GetProjectionTop() const; + const RageMatrix* GetViewTop() const; + const RageMatrix* GetWorldTop() const; + const RageMatrix* GetTextureTop() const; // // To limit the framerate, call FrameLimitBeforeVsync before waiting