mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
screen: add set_visarea_full plus some random examples (nw)
This commit is contained in:
parent
9a98942660
commit
cf2e2c031d
@ -229,6 +229,7 @@ public:
|
||||
void set_vblank_time(attoseconds_t time) { m_vblank = time; m_oldstyle_vblank_supplied = true; }
|
||||
void set_size(u16 width, u16 height) { m_width = width; m_height = height; }
|
||||
void set_visarea(s16 minx, s16 maxx, s16 miny, s16 maxy) { m_visarea.set(minx, maxx, miny, maxy); }
|
||||
void set_visarea_full() { m_visarea.set(0, m_width - 1, 0, m_height - 1); } // call after set_size
|
||||
void set_default_position(double xscale, double xoffs, double yscale, double yoffs) {
|
||||
m_xscale = xscale;
|
||||
m_xoffset = xoffs;
|
||||
|
@ -3843,7 +3843,7 @@ void einvader_state::einvader(machine_config &config)
|
||||
screen.set_svg_region("svg");
|
||||
screen.set_refresh_hz(50);
|
||||
screen.set_size(939, 1080);
|
||||
screen.set_visarea(0, 939-1, 0, 1080-1);
|
||||
screen.set_visarea_full();
|
||||
TIMER(config, "display_decay").configure_periodic(FUNC(hh_tms1k_state::display_decay_tick), attotime::from_msec(1));
|
||||
config.set_default_layout(layout_einvader);
|
||||
|
||||
@ -4940,7 +4940,7 @@ void ginv1000_state::ginv1000(machine_config &config)
|
||||
screen.set_svg_region("svg");
|
||||
screen.set_refresh_hz(50);
|
||||
screen.set_size(226, 1080);
|
||||
screen.set_visarea(0, 226-1, 0, 1080-1);
|
||||
screen.set_visarea_full();
|
||||
TIMER(config, "display_decay").configure_periodic(FUNC(hh_tms1k_state::display_decay_tick), attotime::from_msec(1));
|
||||
|
||||
/* sound hardware */
|
||||
@ -5091,7 +5091,7 @@ void ginv2000_state::ginv2000(machine_config &config)
|
||||
screen.set_svg_region("svg");
|
||||
screen.set_refresh_hz(50);
|
||||
screen.set_size(364, 1080);
|
||||
screen.set_visarea(0, 364-1, 0, 1080-1);
|
||||
screen.set_visarea_full();
|
||||
TIMER(config, "display_decay").configure_periodic(FUNC(hh_tms1k_state::display_decay_tick), attotime::from_msec(1));
|
||||
|
||||
/* sound hardware */
|
||||
|
@ -234,7 +234,7 @@ void diablo_state::diablo68k(machine_config &config)
|
||||
m_screen->set_refresh_hz(60); // arbitrary
|
||||
m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(2500));
|
||||
m_screen->set_size(6*16+1, 10);
|
||||
m_screen->set_visarea(0, 6*16, 0, 10-1);
|
||||
m_screen->set_visarea_full();
|
||||
m_screen->set_screen_update("hd44780", FUNC(hd44780_device::screen_update));
|
||||
m_screen->set_palette("palette");
|
||||
|
||||
|
@ -336,7 +336,7 @@ void sexpert_state::sexpert(machine_config &config)
|
||||
m_screen->set_refresh_hz(60); // arbitrary
|
||||
m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(2500));
|
||||
m_screen->set_size(6*16+1, 10);
|
||||
m_screen->set_visarea(0, 6*16, 0, 10-1);
|
||||
m_screen->set_visarea_full();
|
||||
m_screen->set_screen_update("hd44780", FUNC(hd44780_device::screen_update));
|
||||
m_screen->set_palette("palette");
|
||||
|
||||
|
@ -534,7 +534,7 @@ MACHINE_CONFIG_START(ti74_state::ti74)
|
||||
screen.set_refresh_hz(60); // arbitrary
|
||||
screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500));
|
||||
screen.set_size(6*31+1, 9*1+1+1);
|
||||
screen.set_visarea(0, 6*31, 0, 9*1+1);
|
||||
screen.set_visarea_full();
|
||||
screen.set_screen_update("hd44780", FUNC(hd44780_device::screen_update));
|
||||
screen.set_palette("palette");
|
||||
|
||||
@ -570,7 +570,7 @@ MACHINE_CONFIG_START(ti74_state::ti95)
|
||||
screen.set_refresh_hz(60); // arbitrary
|
||||
screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500));
|
||||
screen.set_size(200, 20);
|
||||
screen.set_visarea(0, 200-1, 0, 20-1);
|
||||
screen.set_visarea_full();
|
||||
screen.set_screen_update("hd44780", FUNC(hd44780_device::screen_update));
|
||||
screen.set_palette("palette");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user