summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-06-24 05:28:58 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-06-24 05:28:58 +0000
commita39d6ed967eae71397c25f2a858ad3e6327094b1 (patch)
treeb88feec13aa001aeb0ae0b6e2c93f593373574db
parent2ac4c9da6665ffd485fe51265872d8da64ff06ac (diff)
01927: Effects overlay showing in snapshots
Explicitly disabled overlays for non-native snapshots (native snapshots already had them disabled)
-rw-r--r--src/emu/video.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/emu/video.c b/src/emu/video.c
index 51ecbe89d73..be3e724ba7f 100644
--- a/src/emu/video.c
+++ b/src/emu/video.c
@@ -351,19 +351,23 @@ void video_init(running_machine *machine)
/* create a render target for snapshots */
viewname = options_get_string(mame_options(), OPTION_SNAPVIEW);
global.snap_native = (machine->primary_screen != NULL && (viewname[0] == 0 || strcmp(viewname, "native") == 0));
+
+ /* the native target is hard-coded to our internal layout and has all options disabled */
if (global.snap_native)
+ {
global.snap_target = render_target_alloc(layout_snap, RENDER_CREATE_SINGLE_FILE | RENDER_CREATE_HIDDEN);
- else
- global.snap_target = render_target_alloc(NULL, RENDER_CREATE_HIDDEN);
- assert(global.snap_target != NULL);
-
- /* if we are using the native layout, turn off all accoutrements */
- if (global.snap_native)
+ assert(global.snap_target != NULL);
render_target_set_layer_config(global.snap_target, 0);
-
- /* otherwise, find the requested view and select it */
+ }
+
+ /* other targets select the specified view and turn off effects */
else
+ {
+ global.snap_target = render_target_alloc(NULL, RENDER_CREATE_HIDDEN);
+ assert(global.snap_target != NULL);
render_target_set_view(global.snap_target, video_get_view_for_target(machine, global.snap_target, viewname, 0, 1));
+ render_target_set_layer_config(global.snap_target, render_target_get_layer_config(global.snap_target) & ~LAYER_CONFIG_ENABLE_SCREEN_OVERLAY);
+ }
/* extract snap resolution if present */
if (sscanf(options_get_string(mame_options(), OPTION_SNAPSIZE), "%dx%d", &global.snap_width, &global.snap_height) != 2)