mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
PS3: Fix splitscreen
This commit is contained in:
parent
b5fe2118c2
commit
0e13440f1d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user