8000 Remoe lv_color size · genvex/lv_binding_micropython@7d24592 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d24592

Browse files
committed
Remoe lv_color size
Use 2 directly, in order to not rely on LVGL import. Related: lvgl#263 (comment)
1 parent bfe853e commit 7d24592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/generic/st77xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def disp_drv_flush_cb(self,disp_drv,area,color):
439439
# print(f"({area.x1},{area.y1}..{area.x2},{area.y2})")
440440
self.rp2_wait_dma() # wait if not yet done and DMA is being used
441441
# blit in background
442-
self.blit(area.x1,area.y1,w:=(area.x2-area.x1+1),h:=(area.y2-area.y1+1),color.__dereference__(lv.color_t.__SIZE__*w*h),is_blocking=False)
442+
self.blit(area.x1,area.y1,w:=(area.x2-area.x1+1),h:=(area.y2-area.y1+1),color.__dereference__(2*w*h),is_blocking=False)
443443
self.disp_drv.flush_ready()
444444
def __init__(self,doublebuffer=True,factor=4):
445445
import lvgl as lv

0 commit comments

Comments
 (0)
0