Skip to content

Commit

Permalink
Prevent Widescreen from Breaking Applications
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 committed Feb 7, 2025
1 parent 04bdc3c commit 0556a1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gc_gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,7 @@ void glEnd()

void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
if (width > 640) width = 640;
glparamstate.viewport[0] = x;
glparamstate.viewport[1] = y;
glparamstate.viewport[2] = width;
Expand All @@ -1031,6 +1032,7 @@ void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)

void glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
{
if (width > 640) width = 640;
glparamstate.scissor[0] = x;
glparamstate.scissor[1] = y;
glparamstate.scissor[2] = width;
Expand Down

0 comments on commit 0556a1e

Please sign in to comment.