mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
OffsetY fix for non-vulkan backends
This commit is contained in:
parent
c2d54ea0aa
commit
200e2f26c4
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue