Previous 15994 Revisions Next

r4559 Saturday 25th April, 2009 at 19:28:51 UTC by Wilbert Pol
[NGPC] Changed background color selection. Delayed drawing of lines by 1 line.
[src/mess/video]k1ge.c

src/mess/video/k1ge.c
r4558r4559
642642   }
643643   else
644644   {
645      /* Determine the background color */
645646      if ( ( k1ge->vram[0x118] & 0xc0 ) == 0x80 )
646647      {
647648         col = ( k1ge->vram[0x118] & 0x07 ) * 2;
648         col = k1ge->vram[0x3e0 + col ] | ( k1ge->vram[0x3e1 + col ] << 8 );
649649      }
650      col = k1ge->vram[0x3e0 + col ] | ( k1ge->vram[0x3e1 + col ] << 8 );
650651
652      /* Set the bacground color */
651653      for ( i = 0; i < 160; i++ )
652654      {
653655         p[i] = col;
r4558r4559
791793   }
792794
793795   /* Draw a line when inside visible area */
794   if ( y < 152 )
796   if ( y && y < 153 )
795797   {
796      k1ge->draw( device, y );
798      k1ge->draw( device, y - 1 );
797799   }
798800
799801   timer_adjust_oneshot( k1ge->timer, video_screen_get_time_until_pos( k1ge->screen, ( y + 1 ) % K1GE_SCREEN_HEIGHT, 0 ), 0 );

Previous 15994 Revisions Next


© 1998-2018 The MESS Team