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:
Adubbz 2018-02-25 11:19:01 +11:00 committed by plutoo
parent db56a250bf
commit d7396de761

View File

@ -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 ++) {