Skip to content

Commit 374f6e5

Browse files
authored
Merge pull request #198 from favnec5/patch-2
Update display_driver_framework.py
2 parents e2c0ce2 + a583b13 commit 374f6e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api_drivers/py_api_drivers/frozen/display/display_driver_framework.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@ def _flush_cb(self, _, area, color_p):
566566
lv.color_format_get_size(self._color_space)
567567
)
568568

569+
if isinstance(self._data_bus, lcd_bus.RGBBus) and self._rotation>0:
570+
y2+=1
571+
569572
cmd = self._set_memory_location(x1, y1, x2, y2)
570573

571574
# we have to use the __dereference__ method because this method is

0 commit comments

Comments
 (0)