From c7a3cbc5fbba25ee0c170f7623ffe57e2a2247bd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 29 Dec 2005 08:14:52 +0000 Subject: [PATCH] missed a piece --- stepmania/src/RageDisplay.cpp | 6 ++++++ stepmania/src/RageDisplay.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 3e3d09c73e..a77f8c4145 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -604,6 +604,12 @@ RageMatrix RageDisplay::GetFrustumMatrix( float l, float r, float b, float t, fl return m; } +void RageDisplay::ResolutionChanged() +{ + /* The centering matrix depends on the resolution. */ + UpdateCentering(); +} + void RageDisplay::ChangeCentering( int iTranslateX, int iTranslateY, int iAddWidth, int iAddHeight ) { g_iTranslateX = iTranslateX; diff --git a/stepmania/src/RageDisplay.h b/stepmania/src/RageDisplay.h index c46dd2a810..fb79eb90c2 100644 --- a/stepmania/src/RageDisplay.h +++ b/stepmania/src/RageDisplay.h @@ -144,7 +144,7 @@ public: CString SetVideoMode( VideoModeParams p, bool &bNeedReloadTextures ); /* Call this when the resolution has been changed externally: */ - virtual void ResolutionChanged() { } + virtual void ResolutionChanged(); virtual bool BeginFrame() = 0; virtual void EndFrame();