This commit is contained in:
Glenn Maynard
2005-12-04 17:16:06 +00:00
parent da20a407ff
commit e217a25dce
3 changed files with 0 additions and 21 deletions
-19
View File
@@ -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;
-1
View File
@@ -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();
-1
View File
@@ -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; }
};