diff -ru base/src/artwork.c base_crop/src/artwork.c --- base/src/artwork.c Wed Nov 20 21:11:00 2002 +++ base_crop/src/artwork.c Thu Apr 10 10:12:12 2003 @@ -626,6 +626,7 @@ min_x = min_y = 0.0; max_x = max_y = 1.0; if (!options.artwork_crop) + { for (piece = artwork_list; piece; piece = piece->next) { /* compute the outermost bounds */ @@ -634,6 +635,17 @@ if (piece->top < min_y) min_y = piece->top; if (piece->bottom > max_y) max_y = piece->bottom; } + } + else + { + //Do we want leave artwork in edge space + if (options.artwork_fb) + for (piece = artwork_list; piece; piece = piece->next) + { + if (piece->top < min_y) min_y = piece->top; + if (piece->bottom > max_y) max_y = piece->bottom; + } + } /* now compute the altered width/height and the new aspect ratio */ params->width = (int)((max_x - min_x) * (double)(original_width * gamescale) + 0.5); diff -ru base/src/mame.h base_crop/src/mame.h --- base/src/mame.h Thu Apr 10 09:46:14 2003 +++ base_crop/src/mame.h Thu Apr 10 10:04:28 2003 @@ -196,6 +196,7 @@ int use_artwork; /* bitfield indicating which artwork pieces to use */ int artwork_res; /* 1 for 1x game scaling, 2 for 2x */ int artwork_crop; /* 1 to crop artwork to the game screen */ + int artwork_fb; /* 1 to crop artwork to the game screen */ char savegame; /* character representing a savegame to load */ diff -ru base/src/windows/config.c base_crop/src/windows/config.c --- base/src/windows/config.c Thu Apr 10 09:46:56 2003 +++ base_crop/src/windows/config.c Thu Apr 10 10:08:20 2003 @@ -200,6 +200,7 @@ { "use_overlays", "overlay", rc_bool, &use_overlays, "1", 0, 0, NULL, "use overlay artwork" }, { "use_bezels", "bezel", rc_bool, &use_bezels, "1", 0, 0, NULL, "use bezel artwork" }, { "artwork_crop", "artcrop", rc_bool, &options.artwork_crop, "0", 0, 0, NULL, "crop artwork to game screen only" }, + { "artwork_filledges", "cropfe", rc_bool, &options.artwork_fb, "0", 0, 0, NULL, "use with artcrop, fills edges with art" }, { "artwork_resolution", "artres", rc_int, &options.artwork_res, "0", 0, 0, NULL, "artwork resolution (0 for auto)" }, { "cheat", "c", rc_bool, &options.cheat, "0", 0, 0, NULL, "enable/disable cheat subsystem" }, { "debug", "d", rc_bool, &options.mame_debug, "0", 0, 0, NULL, "enable/disable debugger (only if available)" },