From 2a98b09d1aaabdc27a79a2e9af23d39d6cdce386 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 11 Oct 2023 21:25:17 -0700 Subject: J2DGrafContext match --- src/JSystem/J2DGraph/J2DPane.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/JSystem/J2DGraph/J2DPane.cpp') 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); -- cgit v1.2.3