nsxive4fceab
move load/cache messages to right side (#446)
this avoids overwriting the left side bar, which might contain more important information, for e.g output of the thumb-info script.
+4 −4
1 file changed
- M main.c +4 −4
| @@ -434,12 +434,12 @@ static void update_info(void) | |||
| 434 | 434 | r->p = r->buf; | |
| 435 | 435 | if (mode == MODE_THUMB) { | |
| 436 | 436 | if (tns.loadnext < tns.end) | |
| 437 | − | bar_put(l, "Loading... %0*d", fw, tns.loadnext + 1); | |
| 437 | + | bar_put(r, "Loading... %0*d | ", fw, tns.loadnext + 1); | |
| 438 | 438 | else if (tns.initnext < filecnt) | |
| 439 | − | bar_put(l, "Caching... %0*d", fw, tns.initnext + 1); | |
| 440 | − | else if (info.ft.err) | |
| 441 | − | strncpy(l->buf, files[fileidx].name, l->size); | |
| 439 | + | bar_put(r, "Caching... %0*d | ", fw, tns.initnext + 1); | |
| 442 | 440 | bar_put(r, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt); | |
| 441 | + | if (info.ft.err) | |
| 442 | + | strncpy(l->buf, files[fileidx].name, l->size); | |
| 443 | 443 | } else { | |
| 444 | 444 | bar_put(r, "%s", mark); | |
| 445 | 445 | if (img.ss.on) { | |