Skip to content

Commit

Permalink
Update gbgfx.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 20, 2023
1 parent bcb46c7 commit 21f2818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arm9/source/gbgfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,8 @@ void drawScreen()
}
} else {
for (int i = 0; i < 4; i++) {
*(bdst++) = gbc_lut[*(bsrc++)];
*(sdst++) = gbc_lut[*(ssrc++)];
*(bdst++) = gbc_lut[(*(bsrc)&0x7FFF)] | (*(bsrc++)&0x8000);
*(sdst++) = gbc_lut[(*(ssrc)&0x7FFF)] | (*(ssrc++)&0x8000);
}
}
}
Expand Down Expand Up @@ -1702,7 +1702,7 @@ void updateBgPalette_GBC(int paletteid, u8* data) {
u16* dest = BG_PALETTE+paletteid*16+5;
u16* src = ((u16*)data)+paletteid*4;
for (int i=0; i<4; i++)
*(dest++) = *(src++)&0x7FFF;
*(dest++) = *(src++);
}
void updateSprPalette(int paletteid, u8* data, u8 dmgPal) {
int src = paletteid;
Expand Down

0 comments on commit 21f2818

Please sign in to comment.