trunk/src/mame/video/stvvdp2.c
| r20773 | r20774 | |
| 6554 | 6554 | continue; |
| 6555 | 6555 | }; |
| 6556 | 6556 | |
| 6557 | | if ( pix & sprite_shadow ) |
| 6558 | 6557 | { |
| 6559 | | if ( pix & ~sprite_shadow ) |
| 6560 | | { |
| 6561 | | UINT32 p = bitmap_line[x]; |
| 6562 | | bitmap_line[x] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6563 | | } |
| 6564 | | } |
| 6565 | | else |
| 6566 | | { |
| 6567 | 6558 | pix &= sprite_colormask; |
| 6568 | 6559 | if ( pix == (sprite_colormask - 1) ) |
| 6569 | 6560 | { |
| r20773 | r20774 | |
| 6583 | 6574 | bitmap_line[x] = machine.pens[ pix ]; |
| 6584 | 6575 | } |
| 6585 | 6576 | } |
| 6577 | |
| 6578 | /* TODO: I don't think this one makes much logic ... (1) */ |
| 6579 | if ( pix & sprite_shadow ) |
| 6580 | { |
| 6581 | if ( pix & ~sprite_shadow ) |
| 6582 | { |
| 6583 | UINT32 p = bitmap_line[x]; |
| 6584 | bitmap_line[x] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6585 | } |
| 6586 | } |
| 6586 | 6587 | } |
| 6587 | 6588 | } |
| 6588 | 6589 | } |
| r20773 | r20774 | |
| 6646 | 6647 | } |
| 6647 | 6648 | } |
| 6648 | 6649 | |
| 6649 | | if ( pix & sprite_shadow ) |
| 6650 | |
| 6650 | 6651 | { |
| 6651 | | if ( pix & ~sprite_shadow ) |
| 6652 | | { |
| 6653 | | UINT32 p = bitmap_line[x]; |
| 6654 | | bitmap_line[x] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6655 | | } |
| 6656 | | } |
| 6657 | | else |
| 6658 | | { |
| 6659 | 6652 | pix &= sprite_colormask; |
| 6660 | 6653 | if ( pix == (sprite_colormask - 1) ) |
| 6661 | 6654 | { |
| r20773 | r20774 | |
| 6686 | 6679 | bitmap_line[x] = machine.pens[pix]; |
| 6687 | 6680 | } |
| 6688 | 6681 | } |
| 6682 | |
| 6683 | /* TODO: (1) */ |
| 6684 | if ( pix & sprite_shadow ) |
| 6685 | { |
| 6686 | if ( pix & ~sprite_shadow ) |
| 6687 | { |
| 6688 | UINT32 p = bitmap_line[x]; |
| 6689 | bitmap_line[x] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6690 | } |
| 6691 | } |
| 6689 | 6692 | } |
| 6690 | 6693 | } |
| 6691 | 6694 | } |
| r20773 | r20774 | |
| 6801 | 6804 | } |
| 6802 | 6805 | } |
| 6803 | 6806 | |
| 6804 | | if ( pix & sprite_shadow ) |
| 6805 | 6807 | { |
| 6806 | | if ( pix & ~sprite_shadow ) |
| 6807 | | { |
| 6808 | | UINT32 p; //= bitmap_line[x]; |
| 6809 | | if(double_x) |
| 6810 | | { |
| 6811 | | p = bitmap_line[x*2]; |
| 6812 | | bitmap_line[x*2] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6813 | | p = bitmap_line[x*2+1]; |
| 6814 | | bitmap_line[x*2+1] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6815 | | } |
| 6816 | | else |
| 6817 | | bitmap_line[x] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6818 | | } |
| 6819 | | } |
| 6820 | | else |
| 6821 | | { |
| 6822 | 6808 | pix &= sprite_colormask; |
| 6823 | 6809 | if ( pix == (sprite_colormask - 1) ) |
| 6824 | 6810 | { |
| r20773 | r20774 | |
| 6892 | 6878 | } |
| 6893 | 6879 | } |
| 6894 | 6880 | } |
| 6881 | |
| 6882 | /* TODO: (1) */ |
| 6883 | if ( pix & sprite_shadow ) |
| 6884 | { |
| 6885 | if ( pix & ~sprite_shadow ) |
| 6886 | { |
| 6887 | UINT32 p; //= bitmap_line[x]; |
| 6888 | if(double_x) |
| 6889 | { |
| 6890 | p = bitmap_line[x*2]; |
| 6891 | bitmap_line[x*2] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6892 | p = bitmap_line[x*2+1]; |
| 6893 | bitmap_line[x*2+1] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6894 | } |
| 6895 | else |
| 6896 | bitmap_line[x] = MAKE_RGB(RGB_RED(p) >> 1, RGB_GREEN(p) >> 1, RGB_BLUE(p) >> 1); |
| 6897 | } |
| 6898 | } |
| 6895 | 6899 | } |
| 6896 | 6900 | } |
| 6897 | 6901 | } |