summaryrefslogtreecommitdiff
path: root/libs/JSystem/J2DGraph/J2DScreen.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2022-12-19 11:06:32 -0800
committerGitHub <noreply@github.com>2022-12-19 12:06:32 -0700
commitca71275bbecc7db9a4eeca3a6ac4215b66de4318 (patch)
treec2851f8cec211216fe0cb6a31a0260a62fc3bf53 /libs/JSystem/J2DGraph/J2DScreen.cpp
parent1114b13da81ab0b52fd4bb56a32f32331a21e581 (diff)
big d_a_alink pass (#214)
* d_a_alink pass1 wip * more d_a_alink work * remove asm * more daalink work * 20% dol code decompiled * fixed some nonmatchings for building * a few daalink functions and labeling some HIO data
Diffstat (limited to 'libs/JSystem/J2DGraph/J2DScreen.cpp')
-rw-r--r--libs/JSystem/J2DGraph/J2DScreen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/JSystem/J2DGraph/J2DScreen.cpp b/libs/JSystem/J2DGraph/J2DScreen.cpp
index bb60ce1778..d4aeeaa12b 100644
--- a/libs/JSystem/J2DGraph/J2DScreen.cpp
+++ b/libs/JSystem/J2DGraph/J2DScreen.cpp
@@ -468,10 +468,10 @@ SECTION_SDATA2 static f32 lit_1830 = 1.0f;
// matches with literals
#ifdef NONMATCHING
void J2DScreen::draw(f32 x, f32 y, J2DGrafContext const* grafCtx) {
- u32 x, y, width, height;
+ u32 l_x, l_y, width, height;
if (mScissor) {
- GXGetScissor(&x, &y, &width, &height);
+ GXGetScissor(&l_x, &l_y, &width, &height);
}
if (grafCtx != NULL) {
@@ -483,7 +483,7 @@ void J2DScreen::draw(f32 x, f32 y, J2DGrafContext const* grafCtx) {
}
if (mScissor) {
- GXSetScissor(x, y, width, height);
+ GXSetScissor(l_x, l_y, width, height);
}
GXSetNumIndStages(0);