Previous 199869 Revisions Next

r32209 Friday 19th September, 2014 at 14:56:07 UTC by Oliver Stöneberg
small optimization to tms9928a_device::device_timer() (nw)
[src/emu/video]tms9928a.c

trunk/src/emu/video/tms9928a.c
r32208r32209
282282   if ( y < 0 || y >= 192 || ! (m_Regs[1] & 0x40) )
283283   {
284284      /* Draw backdrop colour */
285      for ( int i = 0; i < TMS9928A_TOTAL_HORZ; i++ )
286         p[i] = m_palette[BackColour];
285      memset(p, m_palette[BackColour], TMS9928A_TOTAL_HORZ);
287286
288287      /* vblank is set at the last cycle of the first inactive line */
289288      if ( y == 193 )
r32208r32209
297296      /* Draw regular line */
298297
299298      /* Left border */
300      for ( int i = 0; i < TMS9928A_HORZ_DISPLAY_START; i++ )
301         p[i] = m_palette[BackColour];
299      memset(p, m_palette[BackColour], TMS9928A_HORZ_DISPLAY_START);
302300
303301      /* Active display */
304302

Previous 199869 Revisions Next


© 1997-2024 The MAME Team