Previous 199869 Revisions Next

r17988 Tuesday 18th September, 2012 at 07:46:32 UTC by Miodrag Milanović
Did some missed by code (no whatsnew)
[src/mame/drivers]vsnes.c
[src/mame/includes]vsnes.h
[src/mame/video]vsnes.c
[src/mess/drivers]irisha.c pmd85.c
[src/mess/includes]irisha.h pmd85.h
[src/mess/video]irisha.c pmd85.c

trunk/src/mame/video/vsnes.c
r17987r17988
6262  Display refresh
6363
6464***************************************************************************/
65SCREEN_UPDATE_IND16( vsnes )
65UINT32 vsnes_state::screen_update_vsnes(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
6666{
6767   /* render the ppu */
68   ppu2c0x_device *ppu = screen.machine().device<ppu2c0x_device>("ppu1");
68   ppu2c0x_device *ppu = machine().device<ppu2c0x_device>("ppu1");
6969   ppu->render(bitmap, 0, 0, 0, 0);
7070   return 0;
7171}
7272
73
74SCREEN_UPDATE_IND16( vsnes_bottom )
73UINT32 vsnes_state::screen_update_vsnes_bottom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
7574{
76   ppu2c0x_device *ppu = screen.machine().device<ppu2c0x_device>("ppu2");
75   ppu2c0x_device *ppu = machine().device<ppu2c0x_device>("ppu2");
7776   ppu->render(bitmap, 0, 0, 0, 0);
7877   return 0;
7978}
trunk/src/mame/includes/vsnes.h
r17987r17988
9999   DECLARE_MACHINE_RESET(vsdual);
100100   DECLARE_VIDEO_START(vsdual);
101101   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);
102104};
103105
104
105106/*----------- defined in video/vsnes.c -----------*/
106SCREEN_UPDATE_IND16( vsnes );
107SCREEN_UPDATE_IND16( vsnes_bottom );
108
109107extern const ppu2c0x_interface vsnes_ppu_interface_1;
110108extern const ppu2c0x_interface vsnes_ppu_interface_2;
trunk/src/mame/drivers/vsnes.c
r17987r17988
16991699   MCFG_SCREEN_REFRESH_RATE(60)
17001700   MCFG_SCREEN_SIZE(32*8, 262)
17011701   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)
17031703
17041704   MCFG_PALETTE_LENGTH(8*4*16)
17051705
r17987r17988
17631763   MCFG_SCREEN_REFRESH_RATE(60)
17641764   MCFG_SCREEN_SIZE(32*8, 262)
17651765   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)
17671767
17681768   MCFG_SCREEN_ADD("screen2", RASTER)
17691769   MCFG_SCREEN_REFRESH_RATE(60)
17701770   MCFG_SCREEN_SIZE(32*8, 262)
17711771   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)
17731773
17741774   MCFG_PALETTE_INIT_OVERRIDE(vsnes_state,vsdual)
17751775   MCFG_VIDEO_START_OVERRIDE(vsnes_state,vsdual)
trunk/src/mess/includes/pmd85.h
r17987r17988
3939   virtual void machine_reset();
4040   virtual void video_start();
4141   virtual void palette_init();
42   UINT32 screen_update_pmd85(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4243};
4344
4445
r17987r17988
5152
5253/*----------- defined in video/pmd85.c -----------*/
5354
54extern SCREEN_UPDATE_IND16( pmd85 );
5555extern const unsigned char pmd85_palette[3*3];
5656
5757
trunk/src/mess/includes/irisha.h
r17987r17988
4646   virtual void machine_start();
4747   virtual void machine_reset();
4848   virtual void video_start();
49   UINT32 screen_update_irisha(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4950};
5051
5152
r17987r17988
5556extern const struct pit8253_config irisha_pit8253_intf;
5657extern const struct pic8259_interface irisha_pic8259_config;
5758
58extern SCREEN_UPDATE_IND16( irisha );
5959#endif /* IRISHA_H_ */
trunk/src/mess/video/pmd85.c
r17987r17988
5656   }
5757}
5858
59SCREEN_UPDATE_IND16( pmd85 )
59UINT32 pmd85_state::screen_update_pmd85(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
6060{
6161   int pmd85_scanline;
6262
6363   for (pmd85_scanline=0; pmd85_scanline<256; pmd85_scanline++)
64      pmd85_draw_scanline (screen.machine(),bitmap, pmd85_scanline);
64      pmd85_draw_scanline (machine(),bitmap, pmd85_scanline);
6565   return 0;
6666}
trunk/src/mess/video/irisha.c
r17987r17988
1515{
1616}
1717
18SCREEN_UPDATE_IND16( irisha )
18UINT32 irisha_state::screen_update_irisha(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
1919{
2020   UINT8 code1; //, code2;
2121   UINT8 col;
2222   int y, x, b;
23   address_space &space = *screen.machine().device("maincpu")->memory().space(AS_PROGRAM);
23   address_space &space = *machine().device("maincpu")->memory().space(AS_PROGRAM);
2424
2525   // draw image
2626   for (y = 0; y < 200; y++)
trunk/src/mess/drivers/pmd85.c
r17987r17988
560560   MCFG_SCREEN_VBLANK_TIME(0)
561561   MCFG_SCREEN_SIZE(288, 256)
562562   MCFG_SCREEN_VISIBLE_AREA(0, 288-1, 0, 256-1)
563   MCFG_SCREEN_UPDATE_STATIC( pmd85 )
563   MCFG_SCREEN_UPDATE_DRIVER(pmd85_state, screen_update_pmd85)
564564
565565   MCFG_PALETTE_LENGTH(sizeof (pmd85_palette) / 3)
566566
trunk/src/mess/drivers/irisha.c
r17987r17988
165165   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
166166   MCFG_SCREEN_SIZE(320, 200)
167167   MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1)
168   MCFG_SCREEN_UPDATE_STATIC(irisha)
168   MCFG_SCREEN_UPDATE_DRIVER(irisha_state, screen_update_irisha)
169169
170170   MCFG_GFXDECODE(irisha)
171171   MCFG_PALETTE_LENGTH(2)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team