src/mess/drivers/supracan.c
| r9080 | r9081 | |
| 849 | 849 | if (scrollx&0x8000) scrollx-= 0x10000; |
| 850 | 850 | if (scrolly&0x8000) scrolly-= 0x10000; |
| 851 | 851 | |
| 852 | int mosaic_count = (state->tilemap_flags[layer] & 0x001c) >> 2; |
| 853 | int mosaic_mask = 0xffffffff << mosaic_count; |
| 854 | |
| 852 | 855 | int y,x; |
| 853 | 856 | // yes, it will draw a single line if you specify a cliprect as such (partial updates...) |
| 854 | 857 | |
| r9080 | r9081 | |
| 857 | 860 | // these will have to change to ADDR32 etc. once alpha blending is supported |
| 858 | 861 | UINT16* screen = BITMAP_ADDR16(bitmap, y, 0); |
| 859 | 862 | |
| 860 | | int realy = y+scrolly; |
| 863 | int actualy = y&mosaic_mask; |
| 864 | |
| 865 | int realy = actualy+scrolly; |
| 861 | 866 | |
| 862 | 867 | if (!wrap) |
| 863 | 868 | if (scrolly+y < 0 || scrolly+y > ((ysize*8)-1)) |
| r9080 | r9081 | |
| 868 | 873 | |
| 869 | 874 | for (x=cliprect->min_x;x<=cliprect->max_x;x++) |
| 870 | 875 | { |
| 871 | | int realx = x+scrollx; |
| 876 | int actualx = x & mosaic_mask; |
| 877 | int realx = actualx+scrollx; |
| 872 | 878 | |
| 873 | 879 | if (!wrap) |
| 874 | 880 | if (scrollx+x < 0 || scrollx+x > ((xsize*8)-1)) |