diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index 4dec4f86b..4f3197ffa 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -526,7 +526,7 @@ void GPU_HW_D3D11::UpdateDisplay() m_host_display->SetDisplayTexture(m_vram_texture.GetD3DSRV(), m_vram_texture.GetWidth(), m_vram_texture.GetHeight(), 0, 0, m_vram_texture.GetWidth(), m_vram_texture.GetHeight()); m_host_display->SetDisplayParameters(VRAM_WIDTH, VRAM_HEIGHT, Common::Rectangle(0, 0, VRAM_WIDTH, VRAM_HEIGHT), - 1.0f); + static_cast(VRAM_WIDTH) / static_cast(VRAM_HEIGHT)); } else { diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index f1abad2a1..e8038cff9 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -480,7 +480,7 @@ void GPU_HW_OpenGL::UpdateDisplay() m_vram_texture.GetHeight(), m_vram_texture.GetWidth(), -static_cast(m_vram_texture.GetHeight())); m_host_display->SetDisplayParameters(VRAM_WIDTH, VRAM_HEIGHT, Common::Rectangle(0, 0, VRAM_WIDTH, VRAM_HEIGHT), - 1.0f); + static_cast(VRAM_WIDTH) / static_cast(VRAM_HEIGHT)); } else { diff --git a/src/core/gpu_hw_opengl_es.cpp b/src/core/gpu_hw_opengl_es.cpp index b75f59d42..e0399a370 100644 --- a/src/core/gpu_hw_opengl_es.cpp +++ b/src/core/gpu_hw_opengl_es.cpp @@ -344,7 +344,7 @@ void GPU_HW_OpenGL_ES::UpdateDisplay() m_vram_texture.GetHeight(), m_vram_texture.GetWidth(), -static_cast(m_vram_texture.GetHeight())); m_host_display->SetDisplayParameters(VRAM_WIDTH, VRAM_HEIGHT, Common::Rectangle(0, 0, VRAM_WIDTH, VRAM_HEIGHT), - 1.0f); + static_cast(VRAM_WIDTH) / static_cast(VRAM_HEIGHT)); } else { diff --git a/src/core/gpu_sw.cpp b/src/core/gpu_sw.cpp index c56cddd0d..05560d2e8 100644 --- a/src/core/gpu_sw.cpp +++ b/src/core/gpu_sw.cpp @@ -121,7 +121,7 @@ void GPU_SW::UpdateDisplay() m_host_display->SetDisplayTexture(m_display_texture->GetHandle(), VRAM_WIDTH, VRAM_HEIGHT, 0, 0, VRAM_WIDTH, VRAM_HEIGHT); m_host_display->SetDisplayParameters(VRAM_WIDTH, VRAM_HEIGHT, Common::Rectangle(0, 0, VRAM_WIDTH, VRAM_HEIGHT), - 1.0f); + static_cast(VRAM_WIDTH) / static_cast(VRAM_HEIGHT)); } }