unused
This commit is contained in:
@@ -663,25 +663,6 @@ void RageDisplay_D3D::ResolutionChanged()
|
|||||||
#endif
|
#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
|
int RageDisplay_D3D::GetMaxTextureSize() const
|
||||||
{
|
{
|
||||||
return g_DeviceCaps.MaxTextureWidth;
|
return g_DeviceCaps.MaxTextureWidth;
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ protected:
|
|||||||
|
|
||||||
CString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut );
|
CString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut );
|
||||||
RageSurface* CreateScreenshot();
|
RageSurface* CreateScreenshot();
|
||||||
void SetViewport(int shift_left, int shift_down);
|
|
||||||
RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf );
|
RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf );
|
||||||
|
|
||||||
void SendCurrentMatrices();
|
void SendCurrentMatrices();
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ protected:
|
|||||||
VideoModeParams m_Params;
|
VideoModeParams m_Params;
|
||||||
CString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut ) { m_Params = p; return CString(); }
|
CString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut ) { m_Params = p; return CString(); }
|
||||||
RageSurface* CreateScreenshot();
|
RageSurface* CreateScreenshot();
|
||||||
void SetViewport(int shift_left, int shift_down) { }
|
|
||||||
RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf );
|
RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf );
|
||||||
bool SupportsSurfaceFormat( PixelFormat pixfmt ) { return true; }
|
bool SupportsSurfaceFormat( PixelFormat pixfmt ) { return true; }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user