OffsetY fix for non-vulkan backends

This commit is contained in:
Henrik Rydgård 2022-11-27 22:58:34 +01:00
parent c2d54ea0aa
commit 200e2f26c4

View file

@ -79,9 +79,8 @@ void CenterDisplayOutputRect(FRect *rc, float origW, float origH, const FRect &f
float offsetX = g_Config.fDisplayOffsetX;
float offsetY = g_Config.fDisplayOffsetY;
// Have to invert Y for GL
if (GetGPUBackend() == GPUBackend::OPENGL) {
offsetY = offsetY * -1.0f;
if (GetGPUBackend() != GPUBackend::VULKAN) {
offsetY = 1.0 - offsetY;
}
float scale = g_Config.fDisplayScale;