From 59cae087a45752165f71567639d33002bbccf1a1 Mon Sep 17 00:00:00 2001 From: "Marcus Str." Date: Sun, 22 Dec 2024 18:03:48 +0100 Subject: [PATCH] Correction in completion image code --- photogen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/photogen.py b/photogen.py index d5c8035..5b3f573 100644 --- a/photogen.py +++ b/photogen.py @@ -87,13 +87,13 @@ class mstr_photogen: edn = self.find_earthnavdata_number() edns = self.latlng_folder(edn) - cmpl_ptc = Image.open(mstr_datafolder + "textures/tile/completion/ptc.png") - cmpl_brd = Image.open(mstr_datafolder + "textures/tile/completion/brd.png") + cmpl_ptc = Image.open(mstr_datafolder + "textures/tile/background/ptc.png") + cmpl_brd = Image.open(mstr_datafolder + "textures/tile/background/brd.png") # Generate the source image for p in range(1, 201): - rx = randrange(0 - int(cmpl_ptc.width / 2), ptc_full.width - int(cmpl_ptc.width / 2)) - ry = randrange(0 - int(cmpl_ptc.height / 2), ptc_full.height - int(cmpl_ptc.height / 2)) + rx = randrange(0 - int(cmpl_ptc.width / 2), cmpl.width - int(cmpl_ptc.width / 2)) + ry = randrange(0 - int(cmpl_ptc.height / 2), cmpl.height - int(cmpl_ptc.height / 2)) cmpl.alpha_composite(cmpl_ptc, dest=(rx, ry)) cmpl.alpha_composite(cmpl_brd)