mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 08:47:37 +00:00
Improved make_bitmap tool (#2615)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -98,12 +98,12 @@ f.write("/*\n"
|
||||
"#include \"ui.hpp\"\n\n"
|
||||
"namespace ui {\n\n")
|
||||
|
||||
for file in listdir(graphics_path):
|
||||
for file in sorted(listdir(graphics_path)):
|
||||
if file.endswith(".png") and path.isfile(graphics_path + file):
|
||||
convert_png(graphics_path + file)
|
||||
count += 1
|
||||
|
||||
f.write("} /* namespace ui */\n\n")
|
||||
f.write("#endif/*__BITMAP_HPP__*/\n")
|
||||
f.write("#endif /*__BITMAP_HPP__*/\n")
|
||||
|
||||
print(("Converted " + str(count) + " files"))
|
||||
|
Reference in New Issue
Block a user