From c61005051245a742225dfb7774ac40c3a349adcd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 13 Oct 2002 21:49:38 +0000 Subject: [PATCH] Remove hardcoded 640x480. Now changing WIDTH and HEIGHT works (except for theme metrics). Holding grave and tab simultaneously sets DeltaTime=0 (pause). --- stepmania/src/StepMania.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 231d52a35b..cdb0840ef3 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -831,9 +831,12 @@ void Update() if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, DIK_TAB) ) ) fDeltaTime *= 4; - if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, DIK_GRAVE) ) ) - fDeltaTime /= 4; - + if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, DIK_GRAVE) ) ) { + if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, DIK_TAB) ) ) + fDeltaTime = 0; + else + fDeltaTime /= 4; + } MUSIC->Update( fDeltaTime ); @@ -897,7 +900,7 @@ void Render() // calculate view and projection transforms D3DXMATRIX mat; - D3DXMatrixOrthoOffCenterLH( &mat, 0, 640, 480, 0, -1000, 1000 ); + D3DXMatrixOrthoOffCenterLH( &mat, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, -1000, 1000 ); DISPLAY->SetProjectionTransform( &mat ); D3DXMatrixIdentity( &mat );