src/mess/video/x68k.c
| r991 | r992 | |
| 759 | 759 | |
| 760 | 760 | sx += sprite_shift; |
| 761 | 761 | |
| 762 | | drawgfx(bitmap,Machine->gfx[1],code,colour,xflip,yflip,sys.crtc.hshift+sx,sys.crtc.vshift+sy,&rect,TRANSPARENCY_PEN,0x00); |
| 762 | drawgfx(bitmap,Machine->gfx[1],code,colour+0x10,xflip,yflip,sys.crtc.hshift+sx,sys.crtc.vshift+sy,&rect,TRANSPARENCY_PEN,0x00); |
| 763 | 763 | } |
| 764 | 764 | } |
| 765 | 765 | } |
| r991 | r992 | |
| 815 | 815 | int code = x68k_spriteram[0x3000+tile_index] & 0x00ff; |
| 816 | 816 | int colour = (x68k_spriteram[0x3000+tile_index] & 0x0f00) >> 8; |
| 817 | 817 | int flags = (x68k_spriteram[0x3000+tile_index] & 0xc000) >> 14; |
| 818 | | SET_TILE_INFO(0,code,colour,flags); |
| 818 | SET_TILE_INFO(0,code,colour+16,flags); |
| 819 | 819 | } |
| 820 | 820 | |
| 821 | 821 | static TILE_GET_INFO(x68k_get_bg1_tile) |
| r991 | r992 | |
| 823 | 823 | int code = x68k_spriteram[0x2000+tile_index] & 0x00ff; |
| 824 | 824 | int colour = (x68k_spriteram[0x2000+tile_index] & 0x0f00) >> 8; |
| 825 | 825 | int flags = (x68k_spriteram[0x2000+tile_index] & 0xc000) >> 14; |
| 826 | | SET_TILE_INFO(0,code,colour,flags); |
| 826 | SET_TILE_INFO(0,code,colour+16,flags); |
| 827 | 827 | } |
| 828 | 828 | |
| 829 | 829 | static TILE_GET_INFO(x68k_get_bg0_tile_16) |
| r991 | r992 | |
| 831 | 831 | int code = x68k_spriteram[0x3000+tile_index] & 0x00ff; |
| 832 | 832 | int colour = (x68k_spriteram[0x3000+tile_index] & 0x0f00) >> 8; |
| 833 | 833 | int flags = (x68k_spriteram[0x3000+tile_index] & 0xc000) >> 14; |
| 834 | | SET_TILE_INFO(1,code,colour,flags); |
| 834 | SET_TILE_INFO(1,code,colour+16,flags); |
| 835 | 835 | } |
| 836 | 836 | |
| 837 | 837 | static TILE_GET_INFO(x68k_get_bg1_tile_16) |
| r991 | r992 | |
| 839 | 839 | int code = x68k_spriteram[0x2000+tile_index] & 0x00ff; |
| 840 | 840 | int colour = (x68k_spriteram[0x2000+tile_index] & 0x0f00) >> 8; |
| 841 | 841 | int flags = (x68k_spriteram[0x2000+tile_index] & 0xc000) >> 14; |
| 842 | | SET_TILE_INFO(1,code,colour,flags); |
| 842 | SET_TILE_INFO(1,code,colour+16,flags); |
| 843 | 843 | } |
| 844 | 844 | |
| 845 | 845 | VIDEO_START( x68000 ) |
| r991 | r992 | |
| 864 | 864 | decodegfx(Machine->gfx[gfx_index] , memory_region(REGION_USER1), 0, 256); |
| 865 | 865 | /* 7-Sep-2007 - After 0.118u5, you cannot change the colortable */ |
| 866 | 866 | /* Machine->gfx[gfx_index]->colortable = (Machine->remapped_colortable+0x100); */ |
| 867 | | Machine->gfx[gfx_index]->total_colors = 16; |
| 867 | Machine->gfx[gfx_index]->total_colors = 32; |
| 868 | 868 | |
| 869 | 869 | gfx_index++; |
| 870 | 870 | |
| r991 | r992 | |
| 872 | 872 | decodegfx(Machine->gfx[gfx_index] , memory_region(REGION_USER1), 0, 256); |
| 873 | 873 | /* 7-Sep-2007 - After 0.118u5, you cannot change the colortable */ |
| 874 | 874 | /* Machine->gfx[gfx_index]->colortable = (Machine->remapped_colortable+0x100); */ |
| 875 | | Machine->gfx[gfx_index]->total_colors = 16; |
| 875 | Machine->gfx[gfx_index]->total_colors = 32; |
| 876 | 876 | |
| 877 | 877 | /* Tilemaps */ |
| 878 | 878 | x68k_bg0_8 = tilemap_create(x68k_get_bg0_tile,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,64,64); |