From e499d3ad07f308f3bd0e7c24345dd092c5485b41 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Fri, 8 May 2020 09:28:20 +0100 Subject: [PATCH] fix an issue where offset was not used --- src/core/hle/D3D8/Direct3D9/Direct3D9.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp index 8ac092969..92314bfd5 100644 --- a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp +++ b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp @@ -3817,11 +3817,10 @@ void GetViewPortOffsetAndScale(float (&vOffset)[4], float(&vScale)[4]) // TODO will we need to do something here to support upscaling? // TODO remove the code above as required - // Default scale and offset. + // Reset to default scale (as we accounted for MSAA scale above) + // But don't reset the offset xScale = 1.0f; yScale = 1.0f; - xOffset = 0.5f; - yOffset = 0.5f; // Xbox correct values? xOffset = xOffset + (1.0f / 32.0f);