trunk/src/mame/video/vsnes.c
r17987 | r17988 | |
62 | 62 | Display refresh |
63 | 63 | |
64 | 64 | ***************************************************************************/ |
65 | | SCREEN_UPDATE_IND16( vsnes ) |
| 65 | UINT32 vsnes_state::screen_update_vsnes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
66 | 66 | { |
67 | 67 | /* render the ppu */ |
68 | | ppu2c0x_device *ppu = screen.machine().device<ppu2c0x_device>("ppu1"); |
| 68 | ppu2c0x_device *ppu = machine().device<ppu2c0x_device>("ppu1"); |
69 | 69 | ppu->render(bitmap, 0, 0, 0, 0); |
70 | 70 | return 0; |
71 | 71 | } |
72 | 72 | |
73 | | |
74 | | SCREEN_UPDATE_IND16( vsnes_bottom ) |
| 73 | UINT32 vsnes_state::screen_update_vsnes_bottom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
75 | 74 | { |
76 | | ppu2c0x_device *ppu = screen.machine().device<ppu2c0x_device>("ppu2"); |
| 75 | ppu2c0x_device *ppu = machine().device<ppu2c0x_device>("ppu2"); |
77 | 76 | ppu->render(bitmap, 0, 0, 0, 0); |
78 | 77 | return 0; |
79 | 78 | } |
trunk/src/mame/includes/vsnes.h
r17987 | r17988 | |
99 | 99 | DECLARE_MACHINE_RESET(vsdual); |
100 | 100 | DECLARE_VIDEO_START(vsdual); |
101 | 101 | DECLARE_PALETTE_INIT(vsdual); |
| 102 | UINT32 screen_update_vsnes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 103 | UINT32 screen_update_vsnes_bottom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
102 | 104 | }; |
103 | 105 | |
104 | | |
105 | 106 | /*----------- defined in video/vsnes.c -----------*/ |
106 | | SCREEN_UPDATE_IND16( vsnes ); |
107 | | SCREEN_UPDATE_IND16( vsnes_bottom ); |
108 | | |
109 | 107 | extern const ppu2c0x_interface vsnes_ppu_interface_1; |
110 | 108 | extern const ppu2c0x_interface vsnes_ppu_interface_2; |
trunk/src/mame/drivers/vsnes.c
r17987 | r17988 | |
1699 | 1699 | MCFG_SCREEN_REFRESH_RATE(60) |
1700 | 1700 | MCFG_SCREEN_SIZE(32*8, 262) |
1701 | 1701 | MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
1702 | | MCFG_SCREEN_UPDATE_STATIC(vsnes) |
| 1702 | MCFG_SCREEN_UPDATE_DRIVER(vsnes_state, screen_update_vsnes) |
1703 | 1703 | |
1704 | 1704 | MCFG_PALETTE_LENGTH(8*4*16) |
1705 | 1705 | |
r17987 | r17988 | |
1763 | 1763 | MCFG_SCREEN_REFRESH_RATE(60) |
1764 | 1764 | MCFG_SCREEN_SIZE(32*8, 262) |
1765 | 1765 | MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
1766 | | MCFG_SCREEN_UPDATE_STATIC(vsnes) |
| 1766 | MCFG_SCREEN_UPDATE_DRIVER(vsnes_state, screen_update_vsnes) |
1767 | 1767 | |
1768 | 1768 | MCFG_SCREEN_ADD("screen2", RASTER) |
1769 | 1769 | MCFG_SCREEN_REFRESH_RATE(60) |
1770 | 1770 | MCFG_SCREEN_SIZE(32*8, 262) |
1771 | 1771 | MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1) |
1772 | | MCFG_SCREEN_UPDATE_STATIC(vsnes_bottom) |
| 1772 | MCFG_SCREEN_UPDATE_DRIVER(vsnes_state, screen_update_vsnes_bottom) |
1773 | 1773 | |
1774 | 1774 | MCFG_PALETTE_INIT_OVERRIDE(vsnes_state,vsdual) |
1775 | 1775 | MCFG_VIDEO_START_OVERRIDE(vsnes_state,vsdual) |