From a5866d809efc87bff8c616df4040cbd99f3ba6df Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 8 Mar 2026 16:25:09 -0700 Subject: [PATCH] JUTFader large bounds fix --- libs/JSystem/src/J2DGraph/J2DGrafContext.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/JSystem/src/J2DGraph/J2DGrafContext.cpp b/libs/JSystem/src/J2DGraph/J2DGrafContext.cpp index 3ac3e5d197..36f54a23c6 100644 --- a/libs/JSystem/src/J2DGraph/J2DGrafContext.cpp +++ b/libs/JSystem/src/J2DGraph/J2DGrafContext.cpp @@ -64,6 +64,10 @@ void J2DGrafContext::setup2D() { } void J2DGrafContext::setScissor() { +#if TARGET_PC + GXSetScissor(mScissorBounds.i.x, mScissorBounds.i.y, mScissorBounds.getWidth(), + mScissorBounds.getHeight()); +#else JGeometry::TBox2 bounds(0, 0, 1024, 1024); JGeometry::TBox2 curBounds(mScissorBounds); mScissorBounds.intersect(bounds); @@ -77,6 +81,7 @@ void J2DGrafContext::setScissor() { } else { GXSetScissor(0, 0, 0, 0); } +#endif } void J2DGrafContext::scissor(JGeometry::TBox2 const& bounds) {