Previous 199869 Revisions Next

r18616 Saturday 20th October, 2012 at 03:27:56 UTC by R. Belmont
(MESS) Mac: Support headless operation [R. Belmont]
[src/mess/machine]mac.c

trunk/src/mess/machine/mac.c
r18615r18616
13221322   else
13231323   {
13241324      /* video beam in display (! VBLANK && ! HBLANK basically) */
1325      if (machine().primary_screen->vpos() >= MAC_V_VIS)
1326         val |= 0x40;
1325        if (machine().primary_screen)
1326        {
1327            if (machine().primary_screen->vpos() >= MAC_V_VIS)
1328                val |= 0x40;
1329        }
13271330
13281331      if (ADB_IS_BITBANG_CLASS)
13291332      {
r18615r18616
17711774      }
17721775
17731776   }
1774   this->m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_scanline_tick),this));
1775   this->m_scanline_timer->adjust(machine().primary_screen->time_until_pos(0, 0));
17761777
1778    if (machine().primary_screen)
1779    {
1780        this->m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_scanline_tick),this));
1781        this->m_scanline_timer->adjust(machine().primary_screen->time_until_pos(0, 0));
1782    }
1783
17771784   m_6015_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_6015_tick),this));
17781785   m_6015_timer->adjust(attotime::never);
17791786}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team