Renderer: Use old method of calculating the source rectangle.
This commit is contained in:
1 parent
46bb4fd364
commit
af8ac328e5
2 files changed
+6
-2
No files matched your search
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user