From 0228b4e03ba255fdfabc25dab14ed21b5479a8d2 Mon Sep 17 00:00:00 2001 From: hatal175 Date: Sun, 21 Jan 2024 11:15:22 +0200 Subject: Work on d_msg_scrn_howl + misc (#2040) --- include/JSystem/J2DGraph/J2DGrafContext.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/JSystem/J2DGraph') diff --git a/include/JSystem/J2DGraph/J2DGrafContext.h b/include/JSystem/J2DGraph/J2DGrafContext.h index b2e49ced53..ffa54f2e52 100644 --- a/include/JSystem/J2DGraph/J2DGrafContext.h +++ b/include/JSystem/J2DGraph/J2DGrafContext.h @@ -17,6 +17,10 @@ public: /* 802E8B08 */ J2DGrafContext(f32 x, f32 y, f32 width, f32 height); /* 802E90C0 */ void scissor(JGeometry::TBox2 const& bounds); + void scissor(f32 x, f32 y, f32 width, f32 height) { + scissor(JGeometry::TBox2(x, y, x + width, y + height)); + } + void setColor(JUtility::TColor c) { this->setColor(c, c, c, c); } /* 802E9118 */ void setColor(JUtility::TColor colorTL, JUtility::TColor colorTR, JUtility::TColor colorBR, JUtility::TColor colorBL); -- cgit v1.2.3