summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/Render.cpp
diff options
context:
space:
mode:
authorPatrick A. Ferry <patrickferry@ymail.com>2015-01-03 01:28:49 +0000
committerPatrick A. Ferry <patrickferry@ymail.com>2015-01-03 01:28:49 +0000
commiteebd7da443abf75a7c44796e8759d264cc7f03e4 (patch)
tree0f7e1bf406f127d02b83d87bec24f5381f42567e /Source/Core/VideoBackends/D3D/Render.cpp
parentc3d52e0476e92ef7122d125072963ddce038ac1e (diff)
Fix stretching with Virtual XFB in D3D
This change matches the behaviour of OpenGL. This should make Ty the Tasmanian Tiger 3 stretch across the whole screen. There are other games with this same issue but I have not any. See issue #6750 for details
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/Render.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp
index 5644eae9fb..efff0d94da 100644
--- a/Source/Core/VideoBackends/D3D/Render.cpp
+++ b/Source/Core/VideoBackends/D3D/Render.cpp
@@ -766,6 +766,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 -= fbStride - fbWidth;
+
BlitScreen(sourceRc, drawRc, xfbSource->tex, xfbSource->texWidth, xfbSource->texHeight, Gamma);
}
}