Skip to content

Commit

Permalink
Fix Python code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirwpz committed Dec 16, 2023
1 parent 4363035 commit a5034e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/png2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def do_bitmap(im, desc):
if onlydata:
return

print('%sconst __data BitmapT %s = {' % ('' if shared else 'static ', name))
print('%sconst __data BitmapT %s = {' %
('' if shared else 'static ', name))
print(f' .width = {width},')
print(f' .height = {height},')
print(f' .depth = {depth},')
Expand Down Expand Up @@ -420,7 +421,8 @@ def do_palette(im, desc):

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

print('%sconst __data PaletteT %s = {' % ('' if shared else 'static ', name))
print('%sconst __data PaletteT %s = {' %
('' if shared else 'static ', name))
print(' .count = %d,' % len(cmap))
print(' .colors = {')
for r, g, b in cmap:
Expand Down

0 comments on commit a5034e4

Please sign in to comment.