change = 1;
}
break;
+ case KEY_PPAGE:
+ case 'I':
+ if (ycursor > 0) {
+ ycursor = max (0, ycursor - LINES / 2);
+ change = 1;
+ }
+ break;
+ case 'J':
+ if (xcursor > 0) {
+ xcursor = max (0, xcursor - COLS / 2);
+ change = 1;
+ }
+ break;
+ case KEY_NPAGE:
+ case 'K':
+ if (images[scale]->height - ycursor > LINES) {
+ ycursor = min (ycursor + LINES / 2, images[scale]->height - LINES);
+ change = 1;
+ }
+ break;
+ case 'L':
+ if (images[scale]->width - xcursor > COLS / mode) {
+ xcursor = min (xcursor + COLS / 2, images[scale]->width - COLS);
+ change = 1;
+ }
+ break;
}
}