Loading ChangeLog +2 −1 Original line number Diff line number Diff line git HEAD * Patch yb Stefan Mark: Add --bg-max (scaled with borders) * Patch by Stefan Mark: Add --bg-max (scaled with borders) * Removed rather obscure --bg-seamless mode Tue, 24 Aug 2010 19:23:36 +0200 Daniel Friesel <derf@chaosdorf.de> Loading src/feh.h +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ enum mode_type { MODE_NORMAL = 0, MODE_PAN, MODE_ZOOM, MODE_ROTATE, MODE_BLUR, M }; enum bgmode_type { BG_MODE_NONE = 0, BG_MODE_TILE, BG_MODE_CENTER, BG_MODE_SEAMLESS, BG_MODE_SCALE, BG_MODE_FILL, BG_MODE_MAX BG_MODE_SCALE, BG_MODE_FILL, BG_MODE_MAX }; enum slide_change { SLIDE_NEXT, SLIDE_PREV, SLIDE_RAND, SLIDE_FIRST, SLIDE_LAST, Loading src/help.raw +0 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ OPTIONS --bg-fill FILE Like --bg-scale, but preserves aspect ratio by zooming the image until it fits. May cut off corners --bg-seamless FILE Like --bg-tile, but with blurry corners -C, --fontpath PATH Specify an extra directory to look in for fonts, can be used multiple times to add multiple paths. -M, --menu-font FONT Use FONT for the font in menus. Loading src/menu.c +1 −20 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ void feh_menu_cb_opt_fullscreen(feh_menu * m, feh_menu_item * i); enum { CB_ABOUT = 1, CB_CLOSE, CB_EXIT, CB_RELOAD, CB_REMOVE, CB_DELETE, CB_RESET, CB_REMOVE_THUMB, CB_DELETE_THUMB, CB_BG_TILED, CB_BG_SCALED, CB_BG_SEAMLESS, CB_BG_CENTERED, CB_BG_FILLED, CB_BG_TILED_NOFILE, CB_BG_CENTERED, CB_BG_FILLED, CB_BG_TILED_NOFILE, CB_BG_SCALED_NOFILE, CB_BG_CENTERED_NOFILE, CB_BG_FILLED_NOFILE, CB_SORT_FILENAME, CB_SORT_IMAGENAME, CB_SORT_FILESIZE, CB_SORT_RANDOMIZE, CB_SAVE_IMAGE, CB_SAVE_FILELIST, CB_FIT, CB_OPT_DRAW_FILENAME, Loading Loading @@ -1023,7 +1023,6 @@ void feh_menu_init_common() num_desks = feh_wm_get_num_desks(); if (num_desks > 1) { feh_menu_add_entry(menu_bg, "Set Tiled", NULL, "TILED", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Seamless", NULL, "SEAMLESS", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Scaled", NULL, "SCALED", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Centered", NULL, "CENTERED", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Filled", NULL, "FILLED", 0, NULL, NULL); Loading @@ -1040,14 +1039,6 @@ void feh_menu_init_common() (void *) i, NULL); } m = feh_menu_new(); m->name = estrdup("SEAMLESS"); for (i = 0; i < num_desks; i++) { snprintf(buf, sizeof(buf), "Desktop %d", i + 1); feh_menu_add_entry(m, buf, NULL, NULL, CB_BG_SEAMLESS, (void *) i, NULL); } m = feh_menu_new(); m->name = estrdup("SCALED"); for (i = 0; i < num_desks; i++) { Loading Loading @@ -1090,8 +1081,6 @@ void feh_menu_init_common() if (opt.slideshow || opt.multiwindow) { feh_menu_add_entry(menu_bg, "Set Tiled", NULL, NULL, CB_BG_TILED, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Seamless", NULL, NULL, CB_BG_SEAMLESS, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Scaled", NULL, NULL, CB_BG_SCALED, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Centered", NULL, Loading @@ -1101,8 +1090,6 @@ void feh_menu_init_common() } else { feh_menu_add_entry(menu_bg, "Set Tiled", NULL, NULL, CB_BG_TILED_NOFILE, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Seamless", NULL, NULL, CB_BG_SEAMLESS, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Scaled", NULL, NULL, CB_BG_SCALED_NOFILE, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Centered", NULL, Loading Loading @@ -1302,12 +1289,6 @@ void feh_menu_cb(feh_menu * m, feh_menu_item * i, int action, void *data) feh_wm_set_bg(path, m->fehwin->im, 0, 0, 0, (int) data, 1); free(path); break; case CB_BG_SEAMLESS: im = gib_imlib_clone_image(m->fehwin->im); gib_imlib_image_tile(im); feh_wm_set_bg(NULL, im, 0, 0, 0, (int) data, 1); gib_imlib_free_image_and_decache(im); break; case CB_BG_SCALED: path = feh_absolute_path(FEH_FILE(m->fehwin->file->data)->filename); feh_wm_set_bg(path, m->fehwin->im, 0, 1, 0, (int) data, 1); Loading src/options.c +0 −5 Original line number Diff line number Diff line Loading @@ -396,7 +396,6 @@ static void feh_parse_option_array(int argc, char **argv) {"bg-tile" , 1, 0, 200}, {"bg-center" , 1, 0, 201}, {"bg-scale" , 1, 0, 202}, {"bg-seamless" , 1, 0, 203}, {"menu-style" , 1, 0, 204}, {"zoom" , 1, 0, 205}, {"no-screen-clip", 0, 0, 206}, Loading Loading @@ -675,10 +674,6 @@ static void feh_parse_option_array(int argc, char **argv) opt.bgmode = BG_MODE_SCALE; opt.output_file = estrdup(optarg); break; case 203: opt.bgmode = BG_MODE_SEAMLESS; opt.output_file = estrdup(optarg); break; case 218: opt.bgmode = BG_MODE_FILL; opt.output_file = estrdup(optarg); Loading Loading
ChangeLog +2 −1 Original line number Diff line number Diff line git HEAD * Patch yb Stefan Mark: Add --bg-max (scaled with borders) * Patch by Stefan Mark: Add --bg-max (scaled with borders) * Removed rather obscure --bg-seamless mode Tue, 24 Aug 2010 19:23:36 +0200 Daniel Friesel <derf@chaosdorf.de> Loading
src/feh.h +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ enum mode_type { MODE_NORMAL = 0, MODE_PAN, MODE_ZOOM, MODE_ROTATE, MODE_BLUR, M }; enum bgmode_type { BG_MODE_NONE = 0, BG_MODE_TILE, BG_MODE_CENTER, BG_MODE_SEAMLESS, BG_MODE_SCALE, BG_MODE_FILL, BG_MODE_MAX BG_MODE_SCALE, BG_MODE_FILL, BG_MODE_MAX }; enum slide_change { SLIDE_NEXT, SLIDE_PREV, SLIDE_RAND, SLIDE_FIRST, SLIDE_LAST, Loading
src/help.raw +0 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ OPTIONS --bg-fill FILE Like --bg-scale, but preserves aspect ratio by zooming the image until it fits. May cut off corners --bg-seamless FILE Like --bg-tile, but with blurry corners -C, --fontpath PATH Specify an extra directory to look in for fonts, can be used multiple times to add multiple paths. -M, --menu-font FONT Use FONT for the font in menus. Loading
src/menu.c +1 −20 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ void feh_menu_cb_opt_fullscreen(feh_menu * m, feh_menu_item * i); enum { CB_ABOUT = 1, CB_CLOSE, CB_EXIT, CB_RELOAD, CB_REMOVE, CB_DELETE, CB_RESET, CB_REMOVE_THUMB, CB_DELETE_THUMB, CB_BG_TILED, CB_BG_SCALED, CB_BG_SEAMLESS, CB_BG_CENTERED, CB_BG_FILLED, CB_BG_TILED_NOFILE, CB_BG_CENTERED, CB_BG_FILLED, CB_BG_TILED_NOFILE, CB_BG_SCALED_NOFILE, CB_BG_CENTERED_NOFILE, CB_BG_FILLED_NOFILE, CB_SORT_FILENAME, CB_SORT_IMAGENAME, CB_SORT_FILESIZE, CB_SORT_RANDOMIZE, CB_SAVE_IMAGE, CB_SAVE_FILELIST, CB_FIT, CB_OPT_DRAW_FILENAME, Loading Loading @@ -1023,7 +1023,6 @@ void feh_menu_init_common() num_desks = feh_wm_get_num_desks(); if (num_desks > 1) { feh_menu_add_entry(menu_bg, "Set Tiled", NULL, "TILED", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Seamless", NULL, "SEAMLESS", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Scaled", NULL, "SCALED", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Centered", NULL, "CENTERED", 0, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Filled", NULL, "FILLED", 0, NULL, NULL); Loading @@ -1040,14 +1039,6 @@ void feh_menu_init_common() (void *) i, NULL); } m = feh_menu_new(); m->name = estrdup("SEAMLESS"); for (i = 0; i < num_desks; i++) { snprintf(buf, sizeof(buf), "Desktop %d", i + 1); feh_menu_add_entry(m, buf, NULL, NULL, CB_BG_SEAMLESS, (void *) i, NULL); } m = feh_menu_new(); m->name = estrdup("SCALED"); for (i = 0; i < num_desks; i++) { Loading Loading @@ -1090,8 +1081,6 @@ void feh_menu_init_common() if (opt.slideshow || opt.multiwindow) { feh_menu_add_entry(menu_bg, "Set Tiled", NULL, NULL, CB_BG_TILED, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Seamless", NULL, NULL, CB_BG_SEAMLESS, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Scaled", NULL, NULL, CB_BG_SCALED, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Centered", NULL, Loading @@ -1101,8 +1090,6 @@ void feh_menu_init_common() } else { feh_menu_add_entry(menu_bg, "Set Tiled", NULL, NULL, CB_BG_TILED_NOFILE, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Seamless", NULL, NULL, CB_BG_SEAMLESS, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Scaled", NULL, NULL, CB_BG_SCALED_NOFILE, NULL, NULL); feh_menu_add_entry(menu_bg, "Set Centered", NULL, Loading Loading @@ -1302,12 +1289,6 @@ void feh_menu_cb(feh_menu * m, feh_menu_item * i, int action, void *data) feh_wm_set_bg(path, m->fehwin->im, 0, 0, 0, (int) data, 1); free(path); break; case CB_BG_SEAMLESS: im = gib_imlib_clone_image(m->fehwin->im); gib_imlib_image_tile(im); feh_wm_set_bg(NULL, im, 0, 0, 0, (int) data, 1); gib_imlib_free_image_and_decache(im); break; case CB_BG_SCALED: path = feh_absolute_path(FEH_FILE(m->fehwin->file->data)->filename); feh_wm_set_bg(path, m->fehwin->im, 0, 1, 0, (int) data, 1); Loading
src/options.c +0 −5 Original line number Diff line number Diff line Loading @@ -396,7 +396,6 @@ static void feh_parse_option_array(int argc, char **argv) {"bg-tile" , 1, 0, 200}, {"bg-center" , 1, 0, 201}, {"bg-scale" , 1, 0, 202}, {"bg-seamless" , 1, 0, 203}, {"menu-style" , 1, 0, 204}, {"zoom" , 1, 0, 205}, {"no-screen-clip", 0, 0, 206}, Loading Loading @@ -675,10 +674,6 @@ static void feh_parse_option_array(int argc, char **argv) opt.bgmode = BG_MODE_SCALE; opt.output_file = estrdup(optarg); break; case 203: opt.bgmode = BG_MODE_SEAMLESS; opt.output_file = estrdup(optarg); break; case 218: opt.bgmode = BG_MODE_FILL; opt.output_file = estrdup(optarg); Loading