fixed possible rotation issues

The image will only be rotated while rendering on the Display, i.e. when render  = True.
Images saved in /Inkycal/images will not be affected by this change to allow developers to see the image wihtout having to flip the images manually
This commit is contained in:
Ace 2020-06-13 15:15:56 +02:00
parent a66e28ded7
commit 90ec1a177d

View File

@ -184,8 +184,8 @@ class Inkycal:
# Flip the image by 180° if required
if self.upside_down == True:
upside_down(im_black)
upside_down(im_colour)
im_black = upside_down(im_black)
im_colour = upside_down(im_colour)
# render the image on the display
Display.render(im_black, im_colour)
@ -197,7 +197,7 @@ class Inkycal:
# Flip the image by 180° if required
if self.upside_down == True:
upside_down(im_black)
im_black = upside_down(im_black)
Display.render(im_black)
@ -279,7 +279,6 @@ class Inkycal:
else:
y = im1_cursor + int( (section_size[1]-im1_size[1]) /2)
# center the image in the section space
im_black.paste(im1, (x,y), im1)