Skip to content

Commit

Permalink
png2c: apply small fix backported from 318a84f
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirwpz committed Dec 16, 2023
1 parent 71064ac commit d2bb2fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/png2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ def do_palette(im, desc):

cmap = [pal[i * 3:(i + 1) * 3] for i in range(colors)]

print("#define %s_count %d\n" % (name, len(cmap)))

print('%sconst PaletteT %s = {' % ('' if shared else 'static ', name))
print(' .count = %d,' % len(cmap))
print(' .colors = {')
Expand Down

0 comments on commit d2bb2fc

Please sign in to comment.