src/mess/video/fmtowns.c
| r6947 | r6948 | |
| 655 | 655 | for(xpos=xstart;xpos!=xend;xpos+=xdir) |
| 656 | 656 | { |
| 657 | 657 | voffset = 0; |
| 658 | | if(xflip) |
| 659 | | pixel = towns_sprram[poffset] & 0x0f; |
| 660 | | else |
| 661 | | pixel = (towns_sprram[poffset] & 0xf0) >> 4; |
| 658 | pixel = (towns_sprram[poffset] & 0xf0) >> 4; |
| 662 | 659 | col = towns_sprram[coffset+(pixel*2)] | (towns_sprram[coffset+(pixel*2)+1] << 8); |
| 663 | 660 | voffset += (towns_crtc_reg[24] * 4) * ypos; // scanline size in bytes * y pos |
| 664 | 661 | voffset += (xpos & 0x1ff) * 2; |
| r6947 | r6948 | |
| 670 | 667 | towns_gfxvram[voffset] = col & 0x00ff; |
| 671 | 668 | } |
| 672 | 669 | if(xflip) |
| 673 | | { |
| 674 | 670 | voffset+=2; |
| 675 | | pixel = (towns_sprram[poffset] & 0xf0) >> 4; |
| 676 | | } |
| 677 | 671 | else |
| 678 | | { |
| 679 | 672 | voffset-=2; |
| 680 | | pixel = towns_sprram[poffset] & 0x0f; |
| 681 | | } |
| 673 | pixel = towns_sprram[poffset] & 0x0f; |
| 682 | 674 | col = towns_sprram[coffset+(pixel*2)] | (towns_sprram[coffset+(pixel*2)+1] << 8); |
| 683 | 675 | voffset &= 0x3ffff; |
| 684 | 676 | voffset += (towns_sprite_reg[6] & 0x10) ? 0x60000 : 0x40000; |