- snprintf(str, sizeof(str), "%s%02u", found_x ? ", " : "", box);
- found_x = ao_text(&fb, &TINY_FONT, found_x, FOUND_Y, str, AO_BLACK, AO_COPY);
+ snprintf(str, sizeof(str), "%u, ", found_boxes[0]);
+ found_width -= ao_text_width(&TINY_FONT, str);
+ memmove(&found_boxes[0], &found_boxes[1], (nfound - 1) * sizeof (int16_t));
+ nfound--;
+ }
+ found_boxes[nfound++] = box;
+
+ ao_rect(&fb, FOUND_X, FOUND_Y - TINY_FONT.ascent, FOUND_WIDTH, HEIGHT - box_top, AO_WHITE, AO_COPY);
+ x = FOUND_X;
+ for (n = 0; n < nfound; n++) {
+ snprintf(str, sizeof(str), "%s%u", n ? ", " : "", found_boxes[n]);
+ int16_t next_x = ao_text(&fb, &TINY_FONT, x, FOUND_Y, str, AO_BLACK, AO_COPY);
+ x = next_x;