diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2024-01-21 11:15:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 01:15:22 -0800 |
| commit | 0228b4e03ba255fdfabc25dab14ed21b5479a8d2 (patch) | |
| tree | 6e8f6ab50a10deb32db03e34d1139cb73e968511 /include/JSystem/J2DGraph | |
| parent | 9f372c40d5cbac67bb445247efc56ab6a2b5a81e (diff) | |
Work on d_msg_scrn_howl + misc (#2040)
Diffstat (limited to 'include/JSystem/J2DGraph')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DGrafContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<f32> const& bounds); + void scissor(f32 x, f32 y, f32 width, f32 height) { + scissor(JGeometry::TBox2<f32>(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); |
