We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4363035 commit a5034e4Copy full SHA for a5034e4
tools/png2c.py
@@ -196,7 +196,8 @@ def do_bitmap(im, desc):
196
if onlydata:
197
return
198
199
- print('%sconst __data BitmapT %s = {' % ('' if shared else 'static ', name))
+ print('%sconst __data BitmapT %s = {' %
200
+ ('' if shared else 'static ', name))
201
print(f' .width = {width},')
202
print(f' .height = {height},')
203
print(f' .depth = {depth},')
@@ -420,7 +421,8 @@ def do_palette(im, desc):
420
421
422
print("#define %s_count %d\n" % (name, len(cmap)))
423
- print('%sconst __data PaletteT %s = {' % ('' if shared else 'static ', name))
424
+ print('%sconst __data PaletteT %s = {' %
425
426
print(' .count = %d,' % len(cmap))
427
print(' .colors = {')
428
for r, g, b in cmap:
0 commit comments