Previous 15994 Revisions Next

r2107 Tuesday 25th March, 2008 at 19:46:18 UTC by Wilbert Pol
[PC_CGA] Small background color selection fix in text_blink mode.
[src/mess/video]pc_cga.c

src/mess/video/pc_cga.c
r2106r2107
541541   UINT16   *p = BITMAP_ADDR16(bitmap, y, 0);
542542   int i;
543543
544   if ( y == 0 ) logerror("cga_text_blink_update_row\n" );
544545   for ( i = 0; i < x_count; i++ ) {
545546      UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff;
546547      UINT8 chr = videoram[ offset ];
547548      UINT8 attr = videoram[ offset +1 ];
548549      UINT8 data = cga.chr_gen[ chr * 8 + ra ];
549550      UINT16 fg = attr & 0x0F;
550      UINT16 bg = ( attr >> 4 ) & 0x07;
551      UINT16 bg = attr >> 4;
551552
552553      if ( i == cursor_x ) {
553554         data = 0xFF;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team