diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-01-22 20:08:10 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-01-22 20:08:10 +0100 |
commit | da92889e88a89e48cbcce134b6afa7c504e7569e (patch) | |
tree | 9a3592740656f0491742e9b296f8cb539bf3ad8c /src/options.c | |
parent | 92123b141236c680e00c3460b93de46edacfda0a (diff) |
Add --zoom fill as equivalent to --auto-zoom
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c index bf2f6c0..2ca04b5 100644 --- a/src/options.c +++ b/src/options.c @@ -523,7 +523,7 @@ static void feh_parse_option_array(int argc, char **argv) opt.full_screen = 1; break; case 'Z': - opt.auto_zoom = 1; + opt.zoom_mode = ZOOM_MODE_FILL; break; case 'U': opt.loadables = 1; @@ -693,7 +693,12 @@ static void feh_parse_option_array(int argc, char **argv) opt.menu_style = estrdup(optarg); break; case 205: - opt.default_zoom = atoi(optarg); + if (!strcmp("fill", optarg)) + opt.zoom_mode = ZOOM_MODE_FILL; + else if (!strcmp("max", optarg)) + opt.zoom_mode = ZOOM_MODE_MAX; + else + opt.default_zoom = atoi(optarg); break; case 206: opt.screen_clip = 0; |