From 5a19abbbd3e9fcccd138df6ebb127ff8ba683963 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin <stenzek@gmail.com> Date: Fri, 10 Apr 2020 00:43:18 +1000 Subject: [PATCH] GPU/D3D11: Fix broken 24-bit display/interlacing when upscaled --- src/core/gpu_hw_d3d11.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index 27bdd524a..41cf1b167 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -571,8 +571,7 @@ void GPU_HW_D3D11::UpdateDisplay() ID3D11PixelShader* display_pixel_shader = m_display_pixel_shaders[BoolToUInt8(m_GPUSTAT.display_area_color_depth_24)][BoolToUInt8(interlaced)].Get(); - SetViewportAndScissor(reinterpret_start_x, m_crtc_state.display_vram_top, reinterpret_width, - scaled_display_height); + SetViewportAndScissor(reinterpret_start_x, scaled_vram_offset_y, reinterpret_width, scaled_display_height); DrawUtilityShader(display_pixel_shader, uniforms, sizeof(uniforms)); m_host_display->SetDisplayTexture(m_display_texture.GetD3DSRV(), m_display_texture.GetWidth(),