From e217a25dce0f50f92b09bccb20cfa00026a2bea8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 4 Dec 2005 17:16:06 +0000 Subject: [PATCH] unused --- stepmania/src/RageDisplay_D3D.cpp | 19 ------------------- stepmania/src/RageDisplay_D3D.h | 1 - stepmania/src/RageDisplay_Null.h | 1 - 3 files changed, 21 deletions(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index aa5513734b..9def6033da 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -663,25 +663,6 @@ void RageDisplay_D3D::ResolutionChanged() #endif } -void RageDisplay_D3D::SetViewport(int shift_left, int shift_down) -{ - VideoModeParams p; - GraphicsWindow::GetParams( p ); - - //LOG->Warn( "RageDisplay_D3D::SetViewport %d %d", p.width, p.height ); - - /* left and down are on a 0..SCREEN_WIDTH, 0..SCREEN_HEIGHT scale. - * Scale them to the actual viewport range. */ - shift_left = int( shift_left * float(p.width) / SCREEN_WIDTH ); - shift_down = int( shift_down * float(p.height) / SCREEN_HEIGHT ); - - D3DVIEWPORT8 viewData; - g_pd3dDevice->GetViewport( &viewData ); - viewData.X = shift_left; - viewData.Y = -shift_down; - g_pd3dDevice->SetViewport( &viewData ); -} - int RageDisplay_D3D::GetMaxTextureSize() const { return g_DeviceCaps.MaxTextureWidth; diff --git a/stepmania/src/RageDisplay_D3D.h b/stepmania/src/RageDisplay_D3D.h index 6475542e42..1d970f6926 100644 --- a/stepmania/src/RageDisplay_D3D.h +++ b/stepmania/src/RageDisplay_D3D.h @@ -80,7 +80,6 @@ protected: CString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut ); RageSurface* CreateScreenshot(); - void SetViewport(int shift_left, int shift_down); RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf ); void SendCurrentMatrices(); diff --git a/stepmania/src/RageDisplay_Null.h b/stepmania/src/RageDisplay_Null.h index 08126acb2d..beffcf6e5c 100644 --- a/stepmania/src/RageDisplay_Null.h +++ b/stepmania/src/RageDisplay_Null.h @@ -79,7 +79,6 @@ protected: VideoModeParams m_Params; CString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut ) { m_Params = p; return CString(); } RageSurface* CreateScreenshot(); - void SetViewport(int shift_left, int shift_down) { } RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf ); bool SupportsSurfaceFormat( PixelFormat pixfmt ) { return true; } };