kopia lustrzana https://github.com/peterhinch/micropython-micro-gui
Backport split calculation from tgui.
rodzic
99b72f86f4
commit
62f6dd18b1
|
@ -429,7 +429,8 @@ class Screen:
|
||||||
gran = hasattr(ssd, "lock_mode") # Allow granular locking
|
gran = hasattr(ssd, "lock_mode") # Allow granular locking
|
||||||
if arfsh:
|
if arfsh:
|
||||||
h = ssd.height
|
h = ssd.height
|
||||||
split = max(y for y in (1, 2, 3, 5, 7) if not h % y)
|
# split = max(y for y in (1, 2, 3, 5, 7) if not h % y)
|
||||||
|
split = max(y for y in range(1, 9) if not h % y)
|
||||||
if split == 1:
|
if split == 1:
|
||||||
arfsh = False
|
arfsh = False
|
||||||
while True:
|
while True:
|
||||||
|
|
Ładowanie…
Reference in New Issue