src/mess/video/k1ge.c
| r4558 | r4559 | |
| 642 | 642 | } |
| 643 | 643 | else |
| 644 | 644 | { |
| 645 | /* Determine the background color */ |
| 645 | 646 | if ( ( k1ge->vram[0x118] & 0xc0 ) == 0x80 ) |
| 646 | 647 | { |
| 647 | 648 | col = ( k1ge->vram[0x118] & 0x07 ) * 2; |
| 648 | | col = k1ge->vram[0x3e0 + col ] | ( k1ge->vram[0x3e1 + col ] << 8 ); |
| 649 | 649 | } |
| 650 | col = k1ge->vram[0x3e0 + col ] | ( k1ge->vram[0x3e1 + col ] << 8 ); |
| 650 | 651 | |
| 652 | /* Set the bacground color */ |
| 651 | 653 | for ( i = 0; i < 160; i++ ) |
| 652 | 654 | { |
| 653 | 655 | p[i] = col; |
| r4558 | r4559 | |
| 791 | 793 | } |
| 792 | 794 | |
| 793 | 795 | /* Draw a line when inside visible area */ |
| 794 | | if ( y < 152 ) |
| 796 | if ( y && y < 153 ) |
| 795 | 797 | { |
| 796 | | k1ge->draw( device, y ); |
| 798 | k1ge->draw( device, y - 1 ); |
| 797 | 799 | } |
| 798 | 800 | |
| 799 | 801 | timer_adjust_oneshot( k1ge->timer, video_screen_get_time_until_pos( k1ge->screen, ( y + 1 ) % K1GE_SCREEN_HEIGHT, 0 ), 0 ); |