From 60bdd7ae04b937e4fec626d9cb0144111dd000b6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 2 Dec 2005 16:48:13 +0000 Subject: [PATCH] fix "pull back camera" in widescreen --- stepmania/src/RageDisplay.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index a07ed2863b..2748a5dd67 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -604,10 +604,10 @@ RageMatrix RageDisplay::GetFrustumMatrix( float l, float r, float b, float t, fl void RageDisplay::ChangeCentering( int trans_x, int trans_y, int add_width, int add_height ) { // in screen space, left edge = -1, right edge = 1, bottom edge = -1. top edge = 1 - float fPercentShiftX = 2*trans_x/640.f; - float fPercentShiftY = -2*trans_y/480.f; - float fPercentScaleX = (640.f+add_width)/640.f; - float fPercentScaleY = (480.f+add_height)/480.f; + float fPercentShiftX = 2*trans_x/SCREEN_WIDTH; + float fPercentShiftY = -2*trans_y/SCREEN_HEIGHT; + float fPercentScaleX = (SCREEN_WIDTH+add_width)/SCREEN_WIDTH; + float fPercentScaleY = (SCREEN_HEIGHT+add_height)/SCREEN_HEIGHT; RageMatrix m1; RageMatrix m2;