summaryrefslogtreecommitdiff
path: root/src/JSystem/J2DGraph/J2DPane.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2023-10-11 21:25:17 -0700
committerJasper St. Pierre <jstpierre@mecheye.net>2023-10-11 21:25:17 -0700
commit2a98b09d1aaabdc27a79a2e9af23d39d6cdce386 (patch)
treeddd181158936c9b5c0e40d33a15f6a341cdbdac7 /src/JSystem/J2DGraph/J2DPane.cpp
parent1ff5175bb74bf6d1a4bc1dac3b75e3c41ae40829 (diff)
J2DGrafContext match
Diffstat (limited to 'src/JSystem/J2DGraph/J2DPane.cpp')
-rw-r--r--src/JSystem/J2DGraph/J2DPane.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/JSystem/J2DGraph/J2DPane.cpp b/src/JSystem/J2DGraph/J2DPane.cpp
index 4eccae0f..2acde8d2 100644
--- a/src/JSystem/J2DGraph/J2DPane.cpp
+++ b/src/JSystem/J2DGraph/J2DPane.cpp
@@ -168,11 +168,11 @@ void J2DPane::draw(float x, float y, const J2DGrafContext* pCtx, bool clip) {
if (clip) {
mDrawBounds.addPos(pParentPane->mScreenBounds.i.x, pParentPane->mScreenBounds.i.y);
mDrawBounds.intersect(pParentPane->mDrawBounds);
- mDrawAlpha = mAlpha;
-
- if (mInheritAlpha)
- mDrawAlpha = (mAlpha * pParentPane->mDrawAlpha) / 0xFF;
}
+
+ mDrawAlpha = mAlpha;
+ if (mInheritAlpha)
+ mDrawAlpha = (mAlpha * pParentPane->mDrawAlpha) / 0xFF;
} else {
mScreenBounds.addPos(x, y);
makeMatrix(mBounds.i.x + x, mBounds.i.y + y);