Actually load the values for screenshot text, etc. correctly from the config. Pass them into draw_text which doesn't have them readily available.

This commit is contained in:
yrriban 2025-07-04 11:50:10 -04:00
parent b14c12c609
commit 1ac3851065
4 changed files with 42 additions and 19 deletions

View file

@ -22,7 +22,7 @@ class SS(dcc.doom_base.WadMap):
height = self.thumbnail_height
with wand.image.Image(width=width, height=height, pseudo="x:") as img:
img.reset_coords()
if (img.size[0] < width or img.size[1] < height):
if (img.width < width or img.height < height):
if not messagebox.askretrycancel(
title="DCC",
message=f"Image too small ({img.width}x{img.height})." +