Fix stretching with Virtual XFB in D3D

This change matches the behaviour of OpenGL.

This should make Ty the Tasmanian Tiger 3 stretch across the whole
screen. There are other games with this same issue but I have not any.

See issue #6750 for details
This commit is contained in:
Patrick A. Ferry 2015-01-03 01:28:49 +00:00
parent c3d52e0476
commit eebd7da443

View File

@ -766,6 +766,8 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
sourceRc.right = (int)xfbSource->texWidth;
sourceRc.bottom = (int)xfbSource->texHeight;
sourceRc.right -= fbStride - fbWidth;
BlitScreen(sourceRc, drawRc, xfbSource->tex, xfbSource->texWidth, xfbSource->texHeight, Gamma);
}
}