From 9d36cd05be7c63d62ea521d52372ce9cf6539446 Mon Sep 17 00:00:00 2001 From: Rodolfo Osvaldo Bogado Date: Fri, 15 Jan 2010 17:15:31 +0000 Subject: [PATCH] sooooooooooorry forget this file, now efb to ram if fixed git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4844 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp index 64047eafde..8bc97c7acc 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp @@ -358,13 +358,16 @@ void EncodeToRam(u32 address, bool bFromZBuffer, bool bIsIntensityFmt, u32 copyf float MValueX = Renderer::GetTargetScaleX(); float MValueY = Renderer::GetTargetScaleY(); + float Xstride = (float)((Renderer::GetFullTargetWidth() - Renderer::GetTargetWidth()) / 2); + float Ystride = (float)((Renderer::GetFullTargetHeight() - Renderer::GetTargetHeight()) / 2); + float sampleStride = bScaleByHalf?2.0f:1.0f; TextureConversionShader::SetShaderParameters( (float)expandedWidth, expandedHeight * MValueY, - source.left * MValueX, - source.top * MValueY, + source.left * MValueX + Xstride , + source.top * MValueY + Ystride, sampleStride * MValueX, sampleStride * MValueY, (float)Renderer::GetTargetWidth(),