Loading src/options.c +93 −94 Original line number Diff line number Diff line Loading @@ -319,25 +319,23 @@ static void feh_parse_option_array(int argc, char **argv) static char stropts[] = "a:A:b:B:cC:dD:e:E:f:Fg:hH:iIj:klL:mM:nNo:O:pqQrR:sS:tT:uUvVwW:xXy:zZ0:1:2:4:5:8:9:.@:^:~:):|:_:+:"; static struct option lopts[] = { /* actions */ {"help", 0, 0, 'h'}, /* okay */ {"version", 0, 0, 'v'}, /* okay */ /* toggles */ {"montage", 0, 0, 'm'}, /* okay */ {"collage", 0, 0, 'c'}, /* okay */ {"index", 0, 0, 'i'}, /* okay */ {"fullindex", 0, 0, 'I'}, /* okay */ {"verbose", 0, 0, 'V'}, /* okay */ {"borderless", 0, 0, 'x'}, /* okay */ {"keep-http", 0, 0, 'k'}, /* okay */ {"stretch", 0, 0, 's'}, /* okay */ {"multiwindow", 0, 0, 'w'}, /* okay */ {"recursive", 0, 0, 'r'}, /* okay */ {"randomize", 0, 0, 'z'}, /* okay */ {"list", 0, 0, 'l'}, /* okay */ {"quiet", 0, 0, 'q'}, /* okay */ {"loadable", 0, 0, 'U'}, /* okay */ {"unloadable", 0, 0, 'u'}, /* okay */ {"help" , 0, 0, 'h'}, {"version" , 0, 0, 'v'}, {"montage" , 0, 0, 'm'}, {"collage" , 0, 0, 'c'}, {"index" , 0, 0, 'i'}, {"fullindex" , 0, 0, 'I'}, {"verbose" , 0, 0, 'V'}, {"borderless" , 0, 0, 'x'}, {"keep-http" , 0, 0, 'k'}, {"stretch" , 0, 0, 's'}, {"multiwindow" , 0, 0, 'w'}, {"recursive" , 0, 0, 'r'}, {"randomize" , 0, 0, 'z'}, {"list" , 0, 0, 'l'}, {"quiet" , 0, 0, 'q'}, {"loadable" , 0, 0, 'U'}, {"unloadable" , 0, 0, 'u'}, {"no-menus" , 0, 0, 'N'}, {"full-screen" , 0, 0, 'F'}, /* deprecated */ {"fullscreen" , 0, 0, 'F'}, Loading @@ -348,7 +346,7 @@ static void feh_parse_option_array(int argc, char **argv) {"reverse" , 0, 0, 'n'}, {"thumbnails" , 0, 0, 't'}, {"builtin" , 0, 0, 'Q'}, {"scale-down", 0, 0, '.'}, /* okay */ {"scale-down" , 0, 0, '.'}, {"no-jump-on-resort", 0, 0, 220}, {"hide-pointer" , 0, 0, 221}, {"draw-actions" , 0, 0, 222}, Loading @@ -357,20 +355,20 @@ static void feh_parse_option_array(int argc, char **argv) {"no-xinerama" , 0, 0, 225}, {"no-rotate-ctrl-mask", 0, 0, 226}, {"no-blur-ctrl-mask", 0, 0, 227}, {"menu-ctrl-mask", 0, 0, 228}, /* okay */ /* options with values */ {"output", 1, 0, 'o'}, /* okay */ {"output-only", 1, 0, 'O'}, /* okay */ {"action", 1, 0, 'A'}, /* okay */ {"limit-width", 1, 0, 'W'}, /* okay */ {"limit-height", 1, 0, 'H'}, /* okay */ {"reload", 1, 0, 'R'}, /* okay */ {"alpha", 1, 0, 'a'}, /* okay */ {"sort", 1, 0, 'S'}, /* okay */ {"theme", 1, 0, 'T'}, /* okay */ {"filelist", 1, 0, 'f'}, /* okay */ {"customlist", 1, 0, 'L'}, /* okay */ {"geometry", 1, 0, 'g'}, /* okay */ {"menu-ctrl-mask", 0, 0, 228}, {"output" , 1, 0, 'o'}, {"output-only" , 1, 0, 'O'}, {"action" , 1, 0, 'A'}, {"limit-width" , 1, 0, 'W'}, {"limit-height" , 1, 0, 'H'}, {"reload" , 1, 0, 'R'}, {"alpha" , 1, 0, 'a'}, {"sort" , 1, 0, 'S'}, {"theme" , 1, 0, 'T'}, {"filelist" , 1, 0, 'f'}, {"customlist" , 1, 0, 'L'}, {"geometry" , 1, 0, 'g'}, {"menu-font" , 1, 0, 'M'}, {"thumb-width" , 1, 0, 'y'}, {"thumb-height" , 1, 0, 'E'}, Loading Loading @@ -418,6 +416,7 @@ static void feh_parse_option_array(int argc, char **argv) {"index-size" , 1, 0, 231}, {"index-dim" , 1, 0, 232}, {"thumb-redraw" , 1, 0, 233}, {0, 0, 0, 0} }; int optch = 0, cmdx = 0; Loading test/feh.i +1 −1 Original line number Diff line number Diff line Loading @@ -296,7 +296,7 @@ is($width, 423, '--geometry: correct width'); is($height, 232, '--geometry: correct height'); feh_stop(); $win = feh_start('--full-screen'); $win = feh_start('--fullscreen'); (undef, undef, $width, $height) = GetWindowPos($win); ok([(GetWindowPos($win))[2, 3]] ~~ [GetScreenRes()], 'fullscreen uses full screen size'); Loading Loading
src/options.c +93 −94 Original line number Diff line number Diff line Loading @@ -319,25 +319,23 @@ static void feh_parse_option_array(int argc, char **argv) static char stropts[] = "a:A:b:B:cC:dD:e:E:f:Fg:hH:iIj:klL:mM:nNo:O:pqQrR:sS:tT:uUvVwW:xXy:zZ0:1:2:4:5:8:9:.@:^:~:):|:_:+:"; static struct option lopts[] = { /* actions */ {"help", 0, 0, 'h'}, /* okay */ {"version", 0, 0, 'v'}, /* okay */ /* toggles */ {"montage", 0, 0, 'm'}, /* okay */ {"collage", 0, 0, 'c'}, /* okay */ {"index", 0, 0, 'i'}, /* okay */ {"fullindex", 0, 0, 'I'}, /* okay */ {"verbose", 0, 0, 'V'}, /* okay */ {"borderless", 0, 0, 'x'}, /* okay */ {"keep-http", 0, 0, 'k'}, /* okay */ {"stretch", 0, 0, 's'}, /* okay */ {"multiwindow", 0, 0, 'w'}, /* okay */ {"recursive", 0, 0, 'r'}, /* okay */ {"randomize", 0, 0, 'z'}, /* okay */ {"list", 0, 0, 'l'}, /* okay */ {"quiet", 0, 0, 'q'}, /* okay */ {"loadable", 0, 0, 'U'}, /* okay */ {"unloadable", 0, 0, 'u'}, /* okay */ {"help" , 0, 0, 'h'}, {"version" , 0, 0, 'v'}, {"montage" , 0, 0, 'm'}, {"collage" , 0, 0, 'c'}, {"index" , 0, 0, 'i'}, {"fullindex" , 0, 0, 'I'}, {"verbose" , 0, 0, 'V'}, {"borderless" , 0, 0, 'x'}, {"keep-http" , 0, 0, 'k'}, {"stretch" , 0, 0, 's'}, {"multiwindow" , 0, 0, 'w'}, {"recursive" , 0, 0, 'r'}, {"randomize" , 0, 0, 'z'}, {"list" , 0, 0, 'l'}, {"quiet" , 0, 0, 'q'}, {"loadable" , 0, 0, 'U'}, {"unloadable" , 0, 0, 'u'}, {"no-menus" , 0, 0, 'N'}, {"full-screen" , 0, 0, 'F'}, /* deprecated */ {"fullscreen" , 0, 0, 'F'}, Loading @@ -348,7 +346,7 @@ static void feh_parse_option_array(int argc, char **argv) {"reverse" , 0, 0, 'n'}, {"thumbnails" , 0, 0, 't'}, {"builtin" , 0, 0, 'Q'}, {"scale-down", 0, 0, '.'}, /* okay */ {"scale-down" , 0, 0, '.'}, {"no-jump-on-resort", 0, 0, 220}, {"hide-pointer" , 0, 0, 221}, {"draw-actions" , 0, 0, 222}, Loading @@ -357,20 +355,20 @@ static void feh_parse_option_array(int argc, char **argv) {"no-xinerama" , 0, 0, 225}, {"no-rotate-ctrl-mask", 0, 0, 226}, {"no-blur-ctrl-mask", 0, 0, 227}, {"menu-ctrl-mask", 0, 0, 228}, /* okay */ /* options with values */ {"output", 1, 0, 'o'}, /* okay */ {"output-only", 1, 0, 'O'}, /* okay */ {"action", 1, 0, 'A'}, /* okay */ {"limit-width", 1, 0, 'W'}, /* okay */ {"limit-height", 1, 0, 'H'}, /* okay */ {"reload", 1, 0, 'R'}, /* okay */ {"alpha", 1, 0, 'a'}, /* okay */ {"sort", 1, 0, 'S'}, /* okay */ {"theme", 1, 0, 'T'}, /* okay */ {"filelist", 1, 0, 'f'}, /* okay */ {"customlist", 1, 0, 'L'}, /* okay */ {"geometry", 1, 0, 'g'}, /* okay */ {"menu-ctrl-mask", 0, 0, 228}, {"output" , 1, 0, 'o'}, {"output-only" , 1, 0, 'O'}, {"action" , 1, 0, 'A'}, {"limit-width" , 1, 0, 'W'}, {"limit-height" , 1, 0, 'H'}, {"reload" , 1, 0, 'R'}, {"alpha" , 1, 0, 'a'}, {"sort" , 1, 0, 'S'}, {"theme" , 1, 0, 'T'}, {"filelist" , 1, 0, 'f'}, {"customlist" , 1, 0, 'L'}, {"geometry" , 1, 0, 'g'}, {"menu-font" , 1, 0, 'M'}, {"thumb-width" , 1, 0, 'y'}, {"thumb-height" , 1, 0, 'E'}, Loading Loading @@ -418,6 +416,7 @@ static void feh_parse_option_array(int argc, char **argv) {"index-size" , 1, 0, 231}, {"index-dim" , 1, 0, 232}, {"thumb-redraw" , 1, 0, 233}, {0, 0, 0, 0} }; int optch = 0, cmdx = 0; Loading
test/feh.i +1 −1 Original line number Diff line number Diff line Loading @@ -296,7 +296,7 @@ is($width, 423, '--geometry: correct width'); is($height, 232, '--geometry: correct height'); feh_stop(); $win = feh_start('--full-screen'); $win = feh_start('--fullscreen'); (undef, undef, $width, $height) = GetWindowPos($win); ok([(GetWindowPos($win))[2, 3]] ~~ [GetScreenRes()], 'fullscreen uses full screen size'); Loading