Renderer: Use old method of calculating the source rectangle.

This commit is contained in:
Jules Blok 2014-12-25 02:37:22 +01:00
parent 46bb4fd364
commit af8ac328e5
2 changed files with 6 additions and 2 deletions

View File

@ -758,8 +758,11 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
//drawRc.left *= hScale; //drawRc.left *= hScale;
//drawRc.right *= hScale; //drawRc.right *= hScale;
TargetRectangle sourceRc = xfbSource->sourceRc; TargetRectangle sourceRc;
sourceRc.right -= fbStride - fbWidth; sourceRc.left = 0;
sourceRc.top = 0;
sourceRc.right = (int)xfbSource->texWidth;
sourceRc.bottom = (int)xfbSource->texHeight;
BlitScreen(sourceRc, drawRc, xfbSource->tex, xfbSource->texWidth, xfbSource->texHeight, Gamma); BlitScreen(sourceRc, drawRc, xfbSource->tex, xfbSource->texWidth, xfbSource->texHeight, Gamma);
} }

View File

@ -24,6 +24,7 @@ struct XFBSourceBase
unsigned int texWidth; unsigned int texWidth;
unsigned int texHeight; unsigned int texHeight;
// TODO: only used by OGL
TargetRectangle sourceRc; TargetRectangle sourceRc;
}; };