mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 13:36:24 +02:00
OffsetY fix for non-vulkan backends
This commit is contained in:
1 parent
c2d54ea0aa
commit
200e2f26c4
1 file changed
+2
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user