Skip to content

Commit

Permalink
fix regression in .PAL file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Apr 27, 2024
1 parent 0dcc00f commit c56e99a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zzt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,9 +1386,9 @@ int zzt_load_palette(u32 *colors) {

for (int c = 0; c < PALETTE_COLOR_COUNT; c++) {
int i = zzt.palette_lut[c];
zzt.palette_dac[i * 3 + 0] = ((colors[i] >> 16) & 0xFF);
zzt.palette_dac[i * 3 + 1] = ((colors[i] >> 8) & 0xFF);
zzt.palette_dac[i * 3 + 2] = (colors[i] & 0xFF);
zzt.palette_dac[i * 3 + 0] = ((colors[c] >> 16) & 0xFF);
zzt.palette_dac[i * 3 + 1] = ((colors[c] >> 8) & 0xFF);
zzt.palette_dac[i * 3 + 2] = (colors[c] & 0xFF);
}

zzt_refresh_palette();
Expand Down

0 comments on commit c56e99a

Please sign in to comment.