src/mess/video/fmtowns.c
| r6739 | r6740 | |
| 620 | 620 | */ |
| 621 | 621 | void render_sprite_4(bitmap_t* bitmap, UINT32 poffset, UINT32 coffset, UINT16 x, UINT16 y, UINT16 xflip, UINT16 yflip, const rectangle* rect) |
| 622 | 622 | { |
| 623 | | UINT16 xpos,ypos; |
| 623 | INT16 xpos,ypos; |
| 624 | 624 | UINT16 col,pixel; |
| 625 | 625 | UINT32 voffset; |
| 626 | 626 | int xstart,xend,xdir,ystart,yend,ydir; |
| 627 | 627 | |
| 628 | 628 | if(xflip) |
| 629 | 629 | { |
| 630 | | xstart = x+16; |
| 631 | | xend = x; |
| 630 | xstart = x+14; |
| 631 | xend = x-2; |
| 632 | 632 | xdir = -2; |
| 633 | 633 | } |
| 634 | 634 | else |
| 635 | 635 | { |
| 636 | | xstart = x; |
| 637 | | xend = x+16; |
| 636 | xstart = x+2; |
| 637 | xend = x+18; |
| 638 | 638 | xdir = 2; |
| 639 | 639 | } |
| 640 | 640 | if(yflip) |
| 641 | 641 | { |
| 642 | | ystart = y+16; |
| 643 | | yend = y; |
| 642 | ystart = y+15; |
| 643 | yend = y-1; |
| 644 | 644 | ydir = -1; |
| 645 | 645 | } |
| 646 | 646 | else |
| r6739 | r6740 | |
| 694 | 694 | |
| 695 | 695 | void render_sprite_16(bitmap_t* bitmap, UINT32 poffset, UINT16 x, UINT16 y, UINT16 xflip, UINT16 yflip, const rectangle* rect) |
| 696 | 696 | { |
| 697 | | UINT16 xpos,ypos; |
| 697 | INT16 xpos,ypos; |
| 698 | 698 | UINT16 col; |
| 699 | 699 | UINT32 voffset; |
| 700 | 700 | int xstart,ystart,xend,yend,xdir,ydir; |
| r6739 | r6740 | |
| 707 | 707 | } |
| 708 | 708 | else |
| 709 | 709 | { |
| 710 | | xstart = x; |
| 711 | | xend = x+16; |
| 710 | xstart = x+1; |
| 711 | xend = x+17; |
| 712 | 712 | xdir = 1; |
| 713 | 713 | } |
| 714 | 714 | if(yflip) |
| 715 | 715 | { |
| 716 | | ystart = y+16; |
| 717 | | yend = y; |
| 716 | ystart = y+15; |
| 717 | yend = y-1; |
| 718 | 718 | ydir = -1; |
| 719 | 719 | } |
| 720 | 720 | else |