Improved make_bitmap tool (#2615)

This commit is contained in:
Oleg Belousov 2025-04-10 07:21:19 +03:00 committed by GitHub
parent 288f6bd517
commit 319ed3e7b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5234 additions and 5234 deletions

File diff suppressed because it is too large Load diff

View file

@ -98,12 +98,12 @@ f.write("/*\n"
"#include \"ui.hpp\"\n\n" "#include \"ui.hpp\"\n\n"
"namespace ui {\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): if file.endswith(".png") and path.isfile(graphics_path + file):
convert_png(graphics_path + file) convert_png(graphics_path + file)
count += 1 count += 1
f.write("} /* namespace ui */\n\n") f.write("} /* namespace ui */\n\n")
f.write("#endif/*__BITMAP_HPP__*/\n") f.write("#endif /*__BITMAP_HPP__*/\n")
print(("Converted " + str(count) + " files")) print(("Converted " + str(count) + " files"))