From 0e13440f1d76b4343ff419a1e2175b174ffee6b0 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 17 Aug 2024 14:50:04 +1000 Subject: [PATCH] PS3: Fix splitscreen --- src/Graphics_PS3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Graphics_PS3.c b/src/Graphics_PS3.c index 0584a0559..57039e489 100644 --- a/src/Graphics_PS3.c +++ b/src/Graphics_PS3.c @@ -473,14 +473,13 @@ void Gfx_SetViewport(int x, int y, int w, int h) { f32 scale[4], offset[4]; f32 zmin = 0.0f; f32 zmax = 1.0f; - y = Game.Height - y - h; scale[0] = w * 0.5f; scale[1] = h * -0.5f; scale[2] = (zmax - zmin) * 0.5f; scale[3] = 0.0f; offset[0] = x + w * 0.5f; - offset[1] = x + h * 0.5f; + offset[1] = y + h * 0.5f; offset[2] = (zmax + zmin) * 0.5f; offset[3] = 0.0f;