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