Skip to content
Permalink
Browse files

Merge pull request #1818 from ZephyrSurfer/master

Fix scaling in Virtual XFB.
  • Loading branch information...
degasus committed Jan 13, 2015
2 parents 980ce44 + 069a086 commit 0932282caf926347c60f49af60c17612fc9624b5
Showing with 3 additions and 1 deletion.
  1. +2 −0 Source/Core/VideoBackends/D3D/Render.cpp
  2. +1 −1 Source/Core/VideoBackends/OGL/Render.cpp
@@ -763,6 +763,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 -= Renderer::EFBToScaledX(fbStride - fbWidth);

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.bottom = xfbSource->sourceRc.bottom;

sourceRc.right -= fbStride - fbWidth;
sourceRc.right -= Renderer::EFBToScaledX(fbStride - fbWidth);

BlitScreen(sourceRc, drawRc, xfbSource->texture, xfbSource->texWidth, xfbSource->texHeight);
}

0 comments on commit 0932282

Please sign in to comment.
You can’t perform that action at this time.