Video: Trying to fix D3D/XFB disabled regression

This commit is contained in:
booto
2015-07-26 00:59:00 +08:00
parent 3801f89125
commit 9d055ba5f2
3 changed files with 8 additions and 6 deletions

View File

@ -127,7 +127,8 @@ void Renderer::RenderToXFB(u32 xfbAddr, const EFBRectangle& sourceRc, u32 fbStri
}
else
{
Swap(xfbAddr, sourceRc.GetWidth(), fbStride, fbHeight, sourceRc, Gamma);
// below div two to convert from bytes to pixels - it expects width, not stride
Swap(xfbAddr, fbStride/2, fbStride/2, fbHeight, sourceRc, Gamma);
}
}