ct_icons was generated horizontally instead of vertically

This commit is contained in:
Faraphel 2022-07-15 17:24:34 +02:00
parent d7a8e3c40b
commit e87f3dacef

View file

@ -238,7 +238,7 @@ class ModConfig:
""" """
cticons = list(self.get_cticons()) cticons = list(self.get_cticons())
full_cticon = Image.new("RGBA", (CT_ICON_SIZE * len(cticons), CT_ICON_SIZE)) full_cticon = Image.new("RGBA", (CT_ICON_SIZE, CT_ICON_SIZE * len(cticons)))
for i, cticon in enumerate(cticons): full_cticon.paste(cticon, (i * CT_ICON_SIZE, 0)) for i, cticon in enumerate(cticons): full_cticon.paste(cticon, (0, i * CT_ICON_SIZE))
return full_cticon return full_cticon