summaryrefslogtreecommitdiff
path: root/src/JSystem/J2DGraph/J2DPane.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-06-26 18:40:45 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-06-26 19:12:22 -0400
commit3bb95dd90c407c26e72c497dc3b64c5b0742105d (patch)
tree6e802c747f244d3c80285386cb20dc5743cc4da8 /src/JSystem/J2DGraph/J2DPane.cpp
parent9d0608a6a4ab8962839d5b9fd68442e6d477c4ab (diff)
d_mesg work
Diffstat (limited to 'src/JSystem/J2DGraph/J2DPane.cpp')
-rw-r--r--src/JSystem/J2DGraph/J2DPane.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/JSystem/J2DGraph/J2DPane.cpp b/src/JSystem/J2DGraph/J2DPane.cpp
index c416e66a..d5856d3f 100644
--- a/src/JSystem/J2DGraph/J2DPane.cpp
+++ b/src/JSystem/J2DGraph/J2DPane.cpp
@@ -158,17 +158,17 @@ void J2DPane::draw(f32 x, f32 y, const J2DGrafContext* pCtx, bool clip) {
pParentPane = pParent->getObject();
if (mVisible && mBounds.isValid()) {
- mScreenBounds = mBounds;
+ mGlobalBounds = mBounds;
mDrawBounds = mBounds;
if (pParentPane != NULL) {
- JGeometry::TBox2<f32> screenBounds = pParentPane->mScreenBounds;
- mScreenBounds.addPos(screenBounds.i.x, screenBounds.i.y);
+ JGeometry::TBox2<f32> globalBounds = pParentPane->mGlobalBounds;
+ mGlobalBounds.addPos(globalBounds.i.x, globalBounds.i.y);
MTXConcat(pParentPane->mDrawMtx, mMtx, mDrawMtx);
if (clip) {
- JGeometry::TBox2<f32> screenBounds = pParentPane->mScreenBounds;
- mDrawBounds.addPos(screenBounds.i.x, screenBounds.i.y);
+ JGeometry::TBox2<f32> globalBounds = pParentPane->mGlobalBounds;
+ mDrawBounds.addPos(globalBounds.i.x, globalBounds.i.y);
mDrawBounds.intersect(pParentPane->mDrawBounds);
}
@@ -176,10 +176,10 @@ void J2DPane::draw(f32 x, f32 y, const J2DGrafContext* pCtx, bool clip) {
if (mInheritAlpha)
mDrawAlpha = (mAlpha * pParentPane->mDrawAlpha) / 0xFF;
} else {
- mScreenBounds.addPos(x, y);
+ mGlobalBounds.addPos(x, y);
makeMatrix(mBounds.i.x + x, mBounds.i.y + y);
MTXCopy(mMtx, mDrawMtx);
- mDrawBounds.set(mScreenBounds);
+ mDrawBounds.set(mGlobalBounds);
mDrawAlpha = mAlpha;
}
@@ -188,7 +188,7 @@ void J2DPane::draw(f32 x, f32 y, const J2DGrafContext* pCtx, bool clip) {
((J2DOrthoGraph*)pCtx)->scissorBounds(&clipBounds, &mDrawBounds);
if (mDrawBounds.isValid() || !clip) {
- ctx.place(mScreenBounds);
+ ctx.place(mGlobalBounds);
if (clip) {
ctx.scissor(clipBounds);
ctx.setScissor();
@@ -219,7 +219,7 @@ void J2DPane::add(f32 px, f32 py) {
/* 802D0604-802D0680 .text clip__7J2DPaneFRCQ29JGeometry8TBox2<f> */
void J2DPane::clip(const JGeometry::TBox2<f32>& bounds) {
JGeometry::TBox2<f32> boxA(bounds);
- JGeometry::TBox2<f32> boxB(mScreenBounds);
+ JGeometry::TBox2<f32> boxB(mGlobalBounds);
boxA.addPos(boxB.i);
mDrawBounds.intersect(boxA);
}