Reset x and v if nEntries <= 7. Prevents potential odd behaviour when changing from dirs with > 7 entries to <= 7 entries
This commit is contained in:
parent
db56a250bf
commit
d7396de761
@ -335,6 +335,9 @@ void menuLoop() {
|
||||
v += (wanted_x - x) / 3;
|
||||
v /= 2;
|
||||
}
|
||||
else {
|
||||
x = v = 0;
|
||||
}
|
||||
|
||||
// Draw menu entries
|
||||
for (me = menu->firstEntry, i = 0; me; me = me->next, i ++) {
|
||||
|
Loading…
Reference in New Issue
Block a user