Skip to content

Commit 0556a1e

Browse files
committed
Prevent Widescreen from Breaking Applications
1 parent 04bdc3c commit 0556a1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gc_gl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,7 @@ void glEnd()
10151015

10161016
void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
10171017
{
1018+
if (width > 640) width = 640;
10181019
glparamstate.viewport[0] = x;
10191020
glparamstate.viewport[1] = y;
10201021
glparamstate.viewport[2] = width;
@@ -1031,6 +1032,7 @@ void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
10311032

10321033
void glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
10331034
{
1035+
if (width > 640) width = 640;
10341036
glparamstate.scissor[0] = x;
10351037
glparamstate.scissor[1] = y;
10361038
glparamstate.scissor[2] = width;

0 commit comments

Comments
 (0)