Use BE(T) for JUTPalette

This commit is contained in:
PJB3005
2026-02-24 16:35:45 +01:00
parent 4c98a536af
commit 2900265ceb
2 changed files with 4 additions and 3 deletions
+3 -1
View File
@@ -3,6 +3,8 @@
#include <dolphin/gx.h>
#include "dusk/endian.h"
enum JUTTransparency { UNK0, UNK1 };
/**
@@ -12,7 +14,7 @@ enum JUTTransparency { UNK0, UNK1 };
struct ResTLUT {
u8 format;
u8 transparency;
u16 numColors;
BE(u16) numColors;
};
/**
+1 -2
View File
@@ -3,7 +3,6 @@
#include "JSystem/JUtility/JUTPalette.h"
#include <dolphin/gx.h>
#include <dolphin/os.h>
#include "dusk/endian.h"
void JUTPalette::storeTLUT(GXTlut param_0, ResTLUT* tlut) {
if (tlut == NULL) {
@@ -12,7 +11,7 @@ void JUTPalette::storeTLUT(GXTlut param_0, ResTLUT* tlut) {
mTlutName = param_0;
mFormat = tlut->format;
mTransparency = tlut->transparency;
mNumColors = RES_U16(tlut->numColors);
mNumColors = tlut->numColors;
mColorTable = (ResTLUT*)((u8*)tlut + 0x20);
GXInitTlutObj(&mTlutObj, (void*)mColorTable, (GXTlutFmt)mFormat, mNumColors);
}