Previous 15994 Revisions Next

r1295 Monday 19th November, 2007 at 14:47:15 UTC by Curt Coder
[M6847] Fixed to compile.
[src/mess/video]m6847.c

src/mess/video/m6847.c
r1294r1295
14631463   scanline_time = timer_timeelapsed(m6847->hs_rise_timer);
14641464   if (scanline_time.seconds != 0)
14651465      return 0;
1466   assert(scanline_time.subseconds < m6847->scanline_period);
1466   assert(attotime_to_attoseconds(scanline_time) < m6847->scanline_period);
14671467
1468   if (scanline_time.subseconds < (m6847->clock_period * 42))
1468   if (attotime_to_attoseconds(scanline_time) < (m6847->clock_period * 42))
14691469   {
14701470      /* hsync */
14711471      result = 0;
14721472   }
1473   else if (scanline_time.subseconds < (m6847->clock_period * 95 / 2))
1473   else if (attotime_to_attoseconds(scanline_time) < (m6847->clock_period * 95 / 2))
14741474   {
14751475      /* left border */
14761476      result = 0;
14771477   }
1478   else if (scanline_time.subseconds < (m6847->clock_period * 351 / 2))
1478   else if (attotime_to_attoseconds(scanline_time) < (m6847->clock_period * 351 / 2))
14791479   {
14801480      /* body */
1481      result = (scanline_time.subseconds - (m6847->clock_period * 95 / 2))
1481      result = (attotime_to_attoseconds(scanline_time) - (m6847->clock_period * 95 / 2))
14821482         / m6847->clock_period * 2;
14831483   }
14841484   else

Previous 15994 Revisions Next


© 1998-2018 The MESS Team