diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-09-17 10:05:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-17 10:05:55 -0400 |
| commit | f38b962a5844502889ec00a98d0c9ed2a1151695 (patch) | |
| tree | 26f19c014075891d18af15af95b2764feb63beaf /src/JSystem/J2DGraph | |
| parent | 78f95573067988ad5812c040d8a6a77a78eb0dea (diff) | |
demo d_file_error OK, fmap/fmap2 work, misc (#1208)
* d_file_error OK, use J2DPane inlines everywhere
* d_menu_fmap demo work
* fmap and fmap2 work
* fix demo regression with ternary fakematch
* inline cleanup, f_pc_profile OK for demo
* fix min/max bss order
* lstair almost for demo
Diffstat (limited to 'src/JSystem/J2DGraph')
| -rw-r--r-- | src/JSystem/J2DGraph/J2DPane.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/JSystem/J2DGraph/J2DPane.cpp b/src/JSystem/J2DGraph/J2DPane.cpp index b8417d52..8403d6ef 100644 --- a/src/JSystem/J2DGraph/J2DPane.cpp +++ b/src/JSystem/J2DGraph/J2DPane.cpp @@ -53,7 +53,7 @@ void J2DPane::initiate() { mRotation = 0.0f; mCullMode = GX_CULL_NONE; mAlpha = 0xFF; - mInheritAlpha = TRUE; + mInfluencedAlpha = true; mDrawAlpha = 0xFF; mIsConnectParent = 0; calcMtx(); @@ -106,9 +106,9 @@ void J2DPane::makePaneStream(J2DPane* pParentPane, JSURandomInputStream* pStream size--; } - mInheritAlpha = TRUE; + mInfluencedAlpha = true; if (size != 0) { - mInheritAlpha = pStream->readU8() != 0; + mInfluencedAlpha = pStream->readU8() != 0; size--; } @@ -175,7 +175,7 @@ void J2DPane::draw(f32 x, f32 y, const J2DGrafContext* pCtx, bool clip) { } mDrawAlpha = mAlpha; - if (mInheritAlpha) + if (mInfluencedAlpha) mDrawAlpha = (mAlpha * pParentPane->mDrawAlpha) / 0xFF; } else { mGlobalBounds.addPos(x, y); |
