mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
D3D: Fix EFB->XFB copies incorrectly scaling, match GL behavior
This commit is contained in:
@ -783,10 +783,10 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
|
||||
//drawRc.right *= hScale;
|
||||
|
||||
TargetRectangle sourceRc;
|
||||
sourceRc.left = 0;
|
||||
sourceRc.top = 0;
|
||||
sourceRc.right = (int)xfbSource->texWidth;
|
||||
sourceRc.bottom = (int)xfbSource->texHeight;
|
||||
sourceRc.left = xfbSource->sourceRc.left;
|
||||
sourceRc.top = xfbSource->sourceRc.top;
|
||||
sourceRc.right = xfbSource->sourceRc.right;
|
||||
sourceRc.bottom = xfbSource->sourceRc.bottom;
|
||||
|
||||
sourceRc.right -= Renderer::EFBToScaledX(fbStride - fbWidth);
|
||||
|
||||
|
Reference in New Issue
Block a user