Previous 199869 Revisions Next

r18098 Sunday 23rd September, 2012 at 17:05:48 UTC by Miodrag Milanović
Palette init can't be made inside any other place then main machine config, therefore palette in this case must be set in device_start. RB: better move this to rgb32 so no need of palette, otherwise will not work with other video devices (no whatsnew)
[src/emu/video]tms9928a.c tms9928a.h

trunk/src/emu/video/tms9928a.c
r18097r18098
9090   RGB_WHITE
9191};
9292
93
94/*
95** initialize the palette
96*/
97PALETTE_INIT( tms9928a )
98{
99   palette_set_colors(machine, 0, tms9928a_palette, TMS9928A_PALETTE_SIZE);
100}
101
102
10393tms9928a_device::tms9928a_device( const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, bool is_50hz, bool is_reva )
10494   : device_t( mconfig, type, name, tag, owner, clock ),
10595     device_memory_interface(mconfig, *this),
r18097r18098
626616
627617   m_line_timer = timer_alloc(TIMER_LINE);
628618
619   palette_set_colors(machine(), 0, tms9928a_palette, TMS9928A_PALETTE_SIZE);
620
629621   save_item(NAME(m_Regs[0]));
630622   save_item(NAME(m_Regs[1]));
631623   save_item(NAME(m_Regs[2]));
trunk/src/emu/video/tms9928a.h
r18097r18098
5151   MCFG_DEVICE_ADD(_tag, _variant, XTAL_10_738635MHz / 2 ) \
5252   MCFG_DEVICE_CONFIG(_config) \
5353   MCFG_PALETTE_LENGTH(TMS9928A_PALETTE_SIZE) \
54   MCFG_PALETTE_INIT(tms9928a) \
5554
5655
5756#define MCFG_TMS9928A_SCREEN_ADD_NTSC(_screen_tag) \

Previous 199869 Revisions Next


© 1997-2024 The MAME Team