DisplayExtendedSysHand

This commit is contained in:
minirop 2024-09-29 19:10:32 +02:00
parent 25fb27de9b
commit 1c4e8a8aa8
No known key found for this signature in database
GPG Key ID: 8218F21065E8072E

View File

@ -277,17 +277,10 @@ void DisplayExtendedSysHand(struct SysHandCursorProc * proc)
{
int i;
#if !NONMATCHING
u32 clk;
u16 * src, * dst, * _dst;
clk = GetGameClock();
dst = gPaletteBuffer;
_dst = dst + (proc->pal_bank * 0x10 + 0x10E);
src = &PAL_BUF_COLOR(Pal_08A1D448, gPlaySt.config.windowColor, (clk / 4) % 0x10);
*_dst = *src;
#else
gPaletteBuffer[proc->pal_bank * 0x10 + 0x10E] =
#if !NONMATCHING
((gPlaySt.config.windowColor << 4) + ((GetGameClock() / 4) % 0x10))[Pal_08A1D448];
#else
Pal_08A1D448[gPlaySt.config.windowColor * 0x10 + ((GetGameClock() / 5) % 0x10)];
#endif