Skip to content

Commit

Permalink
modify ice output
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Sep 16, 2019
1 parent f69791f commit 7210d0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ice_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ static void ice_print_palette(output_t *out, const char *group_name, liq_palette

for (unsigned int j = 0; j < pal_len; j++) {
liq_color *c = &pal->entries[j];
fprintf(out->txt, "%04X", rgb1555(c->r, c->g, c->b));
uint16_t cr = rgb1555(c->r, c->g, c->b);

fprintf(out->txt, "%02X%02X", cr & 255, (cr >> 8) & 255);
}

fprintf(out->txt, "\"\n\n");
Expand Down

0 comments on commit 7210d0a

Please sign in to comment.