mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 05:28:43 -04:00
Use BE(T) for JUTPalette
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user