summaryrefslogtreecommitdiff
path: root/src/JSystem/J2DGraph/J2DPane.cpp
diff options
context:
space:
mode:
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);