Merge pull request #1818 from ZephyrSurfer/master
Fix scaling in Virtual XFB.
This commit is contained in:
commit
0932282caf
|
@ -763,6 +763,8 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
|
||||||
sourceRc.right = (int)xfbSource->texWidth;
|
sourceRc.right = (int)xfbSource->texWidth;
|
||||||
sourceRc.bottom = (int)xfbSource->texHeight;
|
sourceRc.bottom = (int)xfbSource->texHeight;
|
||||||
|
|
||||||
|
sourceRc.right -= Renderer::EFBToScaledX(fbStride - fbWidth);
|
||||||
|
|
||||||
BlitScreen(sourceRc, drawRc, xfbSource->tex, xfbSource->texWidth, xfbSource->texHeight, Gamma);
|
BlitScreen(sourceRc, drawRc, xfbSource->tex, xfbSource->texWidth, xfbSource->texHeight, Gamma);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1503,7 +1503,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
|
||||||
sourceRc.top = xfbSource->sourceRc.top;
|
sourceRc.top = xfbSource->sourceRc.top;
|
||||||
sourceRc.bottom = xfbSource->sourceRc.bottom;
|
sourceRc.bottom = xfbSource->sourceRc.bottom;
|
||||||
|
|
||||||
sourceRc.right -= fbStride - fbWidth;
|
sourceRc.right -= Renderer::EFBToScaledX(fbStride - fbWidth);
|
||||||
|
|
||||||
BlitScreen(sourceRc, drawRc, xfbSource->texture, xfbSource->texWidth, xfbSource->texHeight);
|
BlitScreen(sourceRc, drawRc, xfbSource->texture, xfbSource->texWidth, xfbSource->texHeight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue