Skip to content

Commit 3c04068

Browse files
Tinyu-Zhaolbuque
authored andcommitted
libs/unit: Fix LVGL win switch width float issue.
Signed-off-by: tinyu <[email protected]>
1 parent 0b369ad commit 3c04068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

m5stack/libs/m5ui/win.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import m5ui
88

99
try:
10-
DPI = lv.DPI_DEF / 3
10+
DPI = int(lv.DPI_DEF / 3)
1111
except Exception:
1212
DPI = 80
1313

0 commit comments

Comments
 (0)