ct_icon missed 2 * 128 pixels height, causing the last 2 icons to not properly appear

This commit is contained in:
raphael60650 2021-05-27 14:08:15 +02:00
parent 1657b00746
commit fe5703e39f

View file

@ -5,7 +5,7 @@ import os
def patch_ct_icon(self): def patch_ct_icon(self):
with open("./ct_config.json") as f: config = json.load(f) with open("./ct_config.json") as f: config = json.load(f)
ct_icon = Image.new("RGBA", (128, 128 * len(config["cup"]))) ct_icon = Image.new("RGBA", (128, 128 * (len(config["cup"]) + 2)))
files = ["left", "right"] files = ["left", "right"]
files.extend(config["cup"].keys()) files.extend(config["cup"].keys())