Skip to content

Commit

Permalink
OffsetY fix for non-vulkan backends
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 27, 2022
1 parent c2d54ea commit 200e2f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions GPU/Common/PresentationCommon.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 200e2f2

Please sign in to comment.