diff options
author | kraxel <kraxel> | 2006-06-13 13:35:48 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-06-13 13:35:48 +0000 |
commit | 8992ff2c2c6e60d88f0e22a048f343947c458cc3 (patch) | |
tree | cce54e530a1f4c7c9a44e876ab9ce28a955e5ca7 /fbi.c | |
parent | 34eca660e8d21ada08c150e0d6e8ed048e1ab380 (diff) | |
download | fbida-8992ff2c2c6e60d88f0e22a048f343947c458cc3.tar.gz |
merge a bunch of fixed from Alan Curry
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -707,7 +707,7 @@ static float auto_scale(struct ida_image *img) static int svga_show(struct ida_image *img, int timeout, char *desc, char *info, int *nr) { - static int paused = 0; + static int paused = 0, skip = KEY_SPACE; int exif = 0, help = 0; int rc; char key[11]; @@ -718,7 +718,7 @@ svga_show(struct ida_image *img, int timeout, char *desc, char *info, int *nr) *nr = 0; if (NULL == img) - return KEY_SPACE; /* skip */ + return skip; if (new_image) { /* start with centered image, if larger than screen */ @@ -821,6 +821,7 @@ svga_show(struct ida_image *img, int timeout, char *desc, char *info, int *nr) redraw = 1; top += text_steps; } else { + skip = KEY_SPACE; return KEY_SPACE; } @@ -850,6 +851,7 @@ svga_show(struct ida_image *img, int timeout, char *desc, char *info, int *nr) redraw = 1; top -= text_steps; } else { + skip = KEY_PGUP; return KEY_PGUP; } @@ -862,6 +864,7 @@ svga_show(struct ida_image *img, int timeout, char *desc, char *info, int *nr) redraw = 1; top += text_steps; } else { + skip = KEY_PGDN; return KEY_PGDN; } @@ -1122,7 +1125,7 @@ static void edit_desc(struct ida_image *img, char *filename) static void cleanup_and_exit(int code) { shadow_fini(); - fb_clear_mem(); + fb_clear_screen(); tty_restore(); fb_cleanup(); flist_print_tagged(stdout); |