Skip to content

Commit

Permalink
Fix outdated PIL method
Browse files Browse the repository at this point in the history
  • Loading branch information
mike8699 committed Oct 18, 2023
1 parent ffd31a8 commit c7fc7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/data/_title_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def insert_title_screen(
if version_string:
draw = ImageDraw.Draw(img)
img_width, img_height = img.size
text_width, text_height = draw.textsize(version_string)
_, _, text_width, text_height = draw.textbbox((0, 0), version_string)
x = img_width - text_width - 2
y = img_height - text_height

Expand Down

0 comments on commit c7fc7cc

Please sign in to comment.