mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
fixed usage of uninitialized members in gtia_device (nw)
This commit is contained in:
parent
bf0fdd4a5a
commit
c7250314d9
1 changed files with 6 additions and 4 deletions
|
@ -240,13 +240,16 @@ void gtia_device::device_start()
|
|||
|
||||
void gtia_device::device_reset()
|
||||
{
|
||||
/* reset the GTIA read/write/helper registers */
|
||||
for (int i = 0; i < 32; i++)
|
||||
write(machine().driver_data()->generic_space(), i, 0);
|
||||
memset(&m_r, 0, sizeof(m_r));
|
||||
memset(&m_h, 0, sizeof(m_h));
|
||||
memset(m_color_lookup, 0, sizeof(m_color_lookup));
|
||||
|
||||
m_lumpf1 = 0;
|
||||
|
||||
/* reset the GTIA read/write/helper registers */
|
||||
for (int i = 0; i < 32; i++)
|
||||
write(machine().driver_data()->generic_space(), i, 0);
|
||||
|
||||
if (is_ntsc())
|
||||
m_r.pal = 0xff;
|
||||
else
|
||||
|
@ -265,7 +268,6 @@ void gtia_device::device_reset()
|
|||
SETCOL_B(ILL, 0x3e); /* bright red */
|
||||
SETCOL_B(EOR, 0xff); /* yellow */
|
||||
|
||||
m_lumpf1 = 0;
|
||||
m_huepm0 = 0;
|
||||
m_huepm1 = 0;
|
||||
m_huepm2 = 0;
|
||||
|
|
Loading…
Reference in a new issue