Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
0aeede65
Verified
Commit
0aeede65
authored
Aug 20, 2019
by
Rahix
Browse files
fix(menu.py): Fix off-by-one error
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
b545c16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
preload/menu.py
View file @
0aeede65
...
...
@@ -61,7 +61,7 @@ def draw_menu(disp, applist, idx, offset):
bg
=
COLOR1
if
i
%
2
==
0
else
COLOR2
,
)
disp
.
print
(
">"
,
posy
=
20
,
fg
=
color
.
COMMYELLOW
,
bg
=
COLOR
1
if
idx
%
2
==
0
else
COLOR
2
)
disp
.
print
(
">"
,
posy
=
20
,
fg
=
color
.
COMMYELLOW
,
bg
=
COLOR
2
if
idx
%
2
==
0
else
COLOR
1
)
disp
.
update
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment