int height = min (image->height - ycursor, LINES);
VERBOSE (DEBUG, FILE *fd = fopen ("my.log", "a"); fprintf (fd, "(%d, %d)\n", width, height); fclose (fd));
int x, y;
- for (y = 0; y < height; y++) {
- for (x = 0; x < width; x++) {
+ for (x = 0; x < width; x++) {
+ for (y = 0; y < height; y++) {
int ind = (x + xcursor) + image->width * (y + ycursor);
color_t *color = findcolor (correction (image->red[ind], gf[0]),
add_wch (&cchar);
}
}
- refresh ();
}
- refresh ();
- attron (COLOR_PAIR (0));
+ attron (COLOR_PAIR(0));
+ redrawwin (stdscr);
switch (getch ()) {
case KEY_UP: