Now that it only touches the input array once, it's much simpler to do
the y-axis inversion there.
select_hints(YSIZE, hstems, tedges, bedges, hhints);
cur = DESCENT * YPIX; printed = false;
- for (i = YSIZE - 1; i >= 0; i--) {
- switch (hhints[i]) {
+ for (i = 0; i < YSIZE; i++) {
+ switch (hhints[YSIZE - 1 - i]) {
case hint_stem:
- start = (YSIZE - i - 1) * YPIX_S;
+ start = i * YPIX_S;
size = YPIX_S;
break;
default: continue;