vsnes.cpp: Set raw screen parameters. (#9233)

This commit is contained in:
0kmg 2022-01-30 08:13:46 -09:00 committed by GitHub
parent a9a2f06e5e
commit 1ba26d7b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1735,9 +1735,7 @@ void vsnes_state::vsnes(machine_config &config)
/* video hardware */
screen_device &screen1(SCREEN(config, "screen1", SCREEN_TYPE_RASTER));
screen1.set_refresh_hz(60);
screen1.set_size(32*8, 262);
screen1.set_visarea(0*8, 32*8-1, 0*8, 30*8-1);
screen1.set_raw(N2A03_NTSC_XTAL / 4, 341, 1, VISIBLE_SCREEN_WIDTH + 1, ppu2c0x_device::NTSC_SCANLINES_PER_FRAME, 0, VISIBLE_SCREEN_HEIGHT);
screen1.set_screen_update("ppu1", FUNC(ppu2c0x_device::screen_update));
PPU_2C04(config, m_ppu1);
@ -1805,15 +1803,11 @@ void vsnes_state::vsdual(machine_config &config)
config.set_default_layout(layout_dualhsxs);
screen_device &screen1(SCREEN(config, "screen1", SCREEN_TYPE_RASTER));
screen1.set_refresh_hz(60);
screen1.set_size(32*8, 262);
screen1.set_visarea(0*8, 32*8-1, 0*8, 30*8-1);
screen1.set_raw(N2A03_NTSC_XTAL / 4, 341, 1, VISIBLE_SCREEN_WIDTH + 1, ppu2c0x_device::NTSC_SCANLINES_PER_FRAME, 0, VISIBLE_SCREEN_HEIGHT);
screen1.set_screen_update("ppu1", FUNC(ppu2c0x_device::screen_update));
screen_device &screen2(SCREEN(config, "screen2", SCREEN_TYPE_RASTER));
screen2.set_refresh_hz(60);
screen2.set_size(32*8, 262);
screen2.set_visarea(0*8, 32*8-1, 0*8, 30*8-1);
screen2.set_raw(N2A03_NTSC_XTAL / 4, 341, 1, VISIBLE_SCREEN_WIDTH + 1, ppu2c0x_device::NTSC_SCANLINES_PER_FRAME, 0, VISIBLE_SCREEN_HEIGHT);
screen2.set_screen_update("ppu2", FUNC(ppu2c0x_device::screen_update));
PPU_2C04(config, m_ppu1);