fix d3d output off by one pixel

This commit is contained in:
Glenn Maynard
2006-03-14 07:33:46 +00:00
parent ddb155858c
commit 6ddc84613d
+1 -1
View File
@@ -786,7 +786,7 @@ void RageDisplay_D3D::SendCurrentMatrices()
/* Convert to OpenGL-style "pixel-centered" coords */
RageMatrix m;
RageMatrixTranslation( &m, -0.5f, -0.5f, 0 );
RageMatrixTranslation( &m, +0.5f, +0.5f, 0 );
RageMatrixMultiply( &m, &m, GetWorldTop() );
g_pd3dDevice->SetTransform( D3DTS_WORLD, (D3DMATRIX*)&m );