[3] fix overlay float error

pull/943/head
meisnate12 2 years ago
parent e7ef0ff8c9
commit 588779a6d7

@ -1 +1 @@
1.17.1-develop2 1.17.1-develop3

@ -1211,11 +1211,11 @@ class Overlay:
addon_y = main_y + ((image_height - text_height) / 2) addon_y = main_y + ((image_height - text_height) / 2)
if text is not None: if text is not None:
drawing.text((main_x, main_y), text, font=self.font, fill=self.font_color, anchor="lt") drawing.text((int(main_x), int(main_y)), text, font=self.font, fill=self.font_color, anchor="lt")
if addon_x is not None: if addon_x is not None:
main_x = addon_x main_x = addon_x
main_y = addon_y main_y = addon_y
return overlay_image, (main_x, main_y) return overlay_image, (int(main_x), int(main_y))
def get_overlay_compare(self): def get_overlay_compare(self):
output = f"{self.name}" output = f"{self.name}"

Loading…
Cancel
Save