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