Skip to content

Commit e63603a

Browse files
committed
Fix 8.8" landscape themes not displaying properly
1 parent b7b58ad commit e63603a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/lcd/lcd_comm_rev_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,10 @@ def _generate_update_image(
381381
if self.sub_revision == SubRevision.REV_8INCH:
382382
if self.orientation == Orientation.LANDSCAPE:
383383
image = image.rotate(270, expand=True)
384+
y0 = self.get_height() - y - image.width
384385
elif self.orientation == Orientation.REVERSE_LANDSCAPE:
385386
image = image.rotate(90, expand=True)
386387
x0 = self.get_width() - x - image.height
387-
y0 = self.get_height() - y - image.width
388388
elif self.orientation == Orientation.PORTRAIT:
389389
image = image.rotate(180, expand=True)
390390
x0 = self.get_height() - y - image.height

0 commit comments

Comments
 (0)