diff options
author | 2010-06-30 03:46:21 +0000 | |
---|---|---|
committer | 2010-06-30 03:46:21 +0000 | |
commit | 733b797a3dae6c89b11c9b3f3eaad68995f6ef09 (patch) | |
tree | 6fa31dcfd68bd9c4a34dd8f2c139d63c00d3e33e /src/emu/video | |
parent | 2c549dad23fd5b5e8dc48e5a9c8f7790d17e697d (diff) |
Split mame.c into mame.c and machine.c, the latter containing the
running_machine definition and implementation.
Moved global machine-level operations and accessors into methods on the
running_machine class. For the most part, this doesn't affect drivers
except for a few occasional bits:
mame_get_phase() == machine->phase()
add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...)
add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...)
mame_get_base_datetime() == machine->base_datetime()
mame_get_current_datetime() == machine->current_datetime()
Cleaned up the region_info class, removing most global region accessors
except for memory_region() and memory_region_length(). Again, this doesn't
generally affect drivers.
Diffstat (limited to 'src/emu/video')
-rw-r--r-- | src/emu/video/vector.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/video/vector.c b/src/emu/video/vector.c index 1dfcff0c6c0..2a03e3ac59d 100644 --- a/src/emu/video/vector.c +++ b/src/emu/video/vector.c @@ -178,10 +178,10 @@ float vector_get_beam(void) VIDEO_START( vector ) { - beam_width = options_get_float(mame_options(), OPTION_BEAM); + beam_width = options_get_float(machine->options(), OPTION_BEAM); /* Grab the settings for this session */ - vector_set_flicker(options_get_float(mame_options(), OPTION_FLICKER)); + vector_set_flicker(options_get_float(machine->options(), OPTION_FLICKER)); vector_index = 0; @@ -259,7 +259,7 @@ void vector_clear_list (void) VIDEO_UPDATE( vector ) { - UINT32 flags = PRIMFLAG_ANTIALIAS(options_get_bool(mame_options(), OPTION_ANTIALIAS) ? 1 : 0) | PRIMFLAG_BLENDMODE(BLENDMODE_ADD); + UINT32 flags = PRIMFLAG_ANTIALIAS(options_get_bool(screen->machine->options(), OPTION_ANTIALIAS) ? 1 : 0) | PRIMFLAG_BLENDMODE(BLENDMODE_ADD); const rectangle &visarea = screen->visible_area(); float xscale = 1.0f / (65536 * (visarea.max_x - visarea.min_x)); float yscale = 1.0f / (65536 * (visarea.max_y - visarea.min_y)); |