Previous 199869 Revisions Next

r33482 Friday 21st November, 2014 at 16:27:57 UTC by David Haywood
remove leftover test  code that was accidentally committed (nw)
[src/emu/video]315_5124.c 315_5124.h
[src/mame/drivers]megaplay.c

trunk/src/emu/video/315_5124.c
r241993r241994
160160   , m_int_cb(*this)
161161   , m_pause_cb(*this)
162162   , m_space_config("videoram", ENDIANNESS_LITTLE, 8, 14, 0, NULL, *ADDRESS_MAP_NAME(sega315_5124))
163   , m_draws_bitmap(1)
164163   , m_palette(*this, "palette")
165164   , m_xscroll_hpos(X_SCROLL_HPOS_5124)
166165{
r241993r241994
178177   , m_int_cb(*this)
179178   , m_pause_cb(*this)
180179   , m_space_config("videoram", ENDIANNESS_LITTLE, 8, 14, 0, NULL, *ADDRESS_MAP_NAME(sega315_5124))
181   , m_draws_bitmap(1)
182180   , m_palette(*this, "palette")
183181   , m_xscroll_hpos(xscroll_hpos)
184182{
r241993r241994
17551753
17561754UINT32 sega315_5124_device::screen_update( screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect )
17571755{
1758   if (m_draws_bitmap) copybitmap(bitmap, m_tmpbitmap, 0, 0, 0, 0, cliprect);
1756   copybitmap(bitmap, m_tmpbitmap, 0, 0, 0, 0, cliprect);
17591757   return 0;
17601758}
17611759
trunk/src/emu/video/315_5124.h
r241993r241994
4242
4343#define VRAM_SIZE             0x4000
4444
45#define MCFG_SEGA315_5124_SET_MANUAL_MIX \
46   sega315_5124_device::set_draws_bitmap(*device, 0);
4745
48
4946/***************************************************************************
5047    TYPE DEFINITIONS
5148***************************************************************************/
r241993r241994
6663
6764   static void set_signal_type(device_t &device, bool is_pal) { downcast<sega315_5124_device &>(device).m_is_pal = is_pal; }
6865   
69   // allow manual mixing
70   static void set_draws_bitmap(device_t &device, int draws_bitmap)
71   {
72      sega315_5124_device &dev = downcast<sega315_5124_device &>(device);
73      dev.m_draws_bitmap = draws_bitmap;
74   }
7566
67
7668   template<class _Object> static devcb_base &set_int_callback(device_t &device, _Object object) { return downcast<sega315_5124_device &>(device).m_int_cb.set_callback(object); }
7769   template<class _Object> static devcb_base &set_pause_callback(device_t &device, _Object object) { return downcast<sega315_5124_device &>(device).m_pause_cb.set_callback(object); }
7870
r241993r241994
190182   static const device_timer_id TIMER_NMI = 6;
191183   static const device_timer_id TIMER_FLAGS = 7;
192184
193   int m_draws_bitmap;
194
195185   required_device<palette_device> m_palette;
196186   const int        m_xscroll_hpos;
197187};
trunk/src/mame/drivers/megaplay.c
r241993r241994
617617{
618618   //printf("megplay vu\n");
619619   screen_update_megadriv(screen, bitmap, cliprect);
620   m_vdp1->screen_update(screen, bitmap, cliprect);
620   //m_vdp1->screen_update(screen, bitmap, cliprect);
621621
622622   // i'm not sure if the overlay (256 pixels wide) is meant to be stretched over the 320 resolution genesis output, or centered.
623623   // if it's meant to be stretched we'll have to multiply the entire outut x4 for the Genesis VDP and x5 for the SMS VDP to get a common 1280 pixel wide image
r241993r241994
685685   MCFG_SEGA315_5246_SET_SCREEN("megadriv")
686686   MCFG_SEGA315_5246_IS_PAL(false)
687687   MCFG_SEGA315_5246_INT_CB(WRITELINE(mplay_state, bios_int_callback))
688   MCFG_SEGA315_5124_SET_MANUAL_MIX
689
690688MACHINE_CONFIG_END
691689
692690


Previous 199869 Revisions Next


© 1997-2024 The MAME Team