forked from youen/assembly_handbook
fixed bug on windows
This commit is contained in:
parent
d04cc28ee9
commit
006e6413ac
@ -200,6 +200,7 @@ class AHB_Render:
|
|||||||
bg = Image.new('RGB', resolution, (255,255,255))
|
bg = Image.new('RGB', resolution, (255,255,255))
|
||||||
if prev_stage_id is not None:
|
if prev_stage_id is not None:
|
||||||
prev_stage = Image.open(dir + "/stages/" + stage_name + "-bg.png")
|
prev_stage = Image.open(dir + "/stages/" + stage_name + "-bg.png")
|
||||||
|
prev_stage.load()
|
||||||
os.remove(dir + "/stages/" + stage_name + "-bg.png")
|
os.remove(dir + "/stages/" + stage_name + "-bg.png")
|
||||||
bg.paste(prev_stage, None, prev_stage.getchannel('A'))
|
bg.paste(prev_stage, None, prev_stage.getchannel('A'))
|
||||||
fg = Image.open(dir + "/stages/" + stage_name + ".png")
|
fg = Image.open(dir + "/stages/" + stage_name + ".png")
|
||||||
|
Loading…
Reference in New Issue
Block a user