summaryrefslogtreecommitdiff
path: root/include/JSystem/J2DGraph/J2DMatBlock.h
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-12-13 00:04:03 -0500
committerGitHub <noreply@github.com>2025-12-12 21:04:03 -0800
commit1b8ea3206dbbaa6e4ebe7b4dfadffd8d85f37480 (patch)
tree334a6f146edd70f260a6d3156e1aad8221b22e42 /include/JSystem/J2DGraph/J2DMatBlock.h
parent7e514502d2e97781aa0488c08e39e505f29f36f5 (diff)
J3D debug work (#2949)
* J3D debug work * Clean up JSystem GXColor ctors, remove a couple fakematches * Update symbols.txt * Fix res include syntax * Remove fakematch that isn't necessary anymore * Fix some Shield regressions
Diffstat (limited to 'include/JSystem/J2DGraph/J2DMatBlock.h')
-rw-r--r--include/JSystem/J2DGraph/J2DMatBlock.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/JSystem/J2DGraph/J2DMatBlock.h b/include/JSystem/J2DGraph/J2DMatBlock.h
index 90321c9196..381f581f07 100644
--- a/include/JSystem/J2DGraph/J2DMatBlock.h
+++ b/include/JSystem/J2DGraph/J2DMatBlock.h
@@ -20,7 +20,7 @@ struct ResTLUT;
struct J2DGXColorS10 : public GXColorS10 {
J2DGXColorS10() {}
-#if PLATFORM_GCN
+#if PLATFORM_GCN && __MWERKS__
J2DGXColorS10(J2DGXColorS10& other) {
r = other.r;
g = other.g;
@@ -637,6 +637,11 @@ struct J2DAlphaComp {
mAlphaCmp = J2DCalcAlphaCmp(info.field_0x0, info.mRef0, info.mRef1);
mRef0 = info.field_0x1;
mRef1 = info.field_0x4;
+ }
+ void operator=(const J2DAlphaComp& other) {
+ mAlphaCmp = other.mAlphaCmp;
+ mRef0 = other.mRef0;
+ mRef1 = other.mRef1;
}
u8 getComp0() { return mAlphaCmp >> 5 & 7; }
u8 getRef0() { return mRef0; }