src/mess/video/x68k.c
| r5332 | r5333 | |
| 794 | 794 | + (((x68k_tvram[loc+0x10000] >> bit) & 0x01) ? 2 : 0) |
| 795 | 795 | + (((x68k_tvram[loc+0x20000] >> bit) & 0x01) ? 4 : 0) |
| 796 | 796 | + (((x68k_tvram[loc+0x30000] >> bit) & 0x01) ? 8 : 0); |
| 797 | | //if(palette_get_color(machine,0x100 + colour) != 0xff000000) // any colour but black |
| 798 | | if(colour != 0) |
| 799 | | *BITMAP_ADDR16(bitmap,line,pixel) = 512 + (x68k_sys.video.text_pal[colour] >> 1); |
| 797 | if(x68k_sys.video.text_pal[colour] != 0x0000) // any colour but black |
| 798 | { |
| 799 | // Colour 0 is displayable if the text layer is at the priority level 2 |
| 800 | if(colour == 0 && (x68k_sys.video.reg[1] & 0x0c00) == 0x0800) |
| 801 | *BITMAP_ADDR16(bitmap,line,pixel) = 512 + (x68k_sys.video.text_pal[colour] >> 1); |
| 802 | else |
| 803 | if(colour != 0) |
| 804 | *BITMAP_ADDR16(bitmap,line,pixel) = 512 + (x68k_sys.video.text_pal[colour] >> 1); |
| 805 | } |
| 800 | 806 | bit--; |
| 801 | 807 | if(bit < 0) |
| 802 | 808 | { |
| r5332 | r5333 | |
| 1089 | 1095 | // rect.max_y=x68k_sys.crtc.height; |
| 1090 | 1096 | bitmap_fill(bitmap,cliprect,0); |
| 1091 | 1097 | |
| 1098 | if(x68k_sys.sysport.contrast == 0) // if monitor contrast is 0, then don't bother displaying anything |
| 1099 | return 0; |
| 1100 | |
| 1092 | 1101 | rect.min_x=x68k_sys.crtc.hbegin; |
| 1093 | 1102 | rect.min_y=x68k_sys.crtc.vbegin; |
| 1094 | 1103 | // rect.max_x=rect.min_x + x68k_sys.crtc.visible_width-1; |
| r5332 | r5333 | |
| 1211 | 1220 | // popmessage("Layer enable - 0x%02x",x68k_sys.video.reg[2] & 0xff); |
| 1212 | 1221 | // popmessage("Graphic layer scroll - %i, %i - %i, %i - %i, %i - %i, %i", |
| 1213 | 1222 | // x68k_sys.crtc.reg[12],x68k_sys.crtc.reg[13],x68k_sys.crtc.reg[14],x68k_sys.crtc.reg[15],x68k_sys.crtc.reg[16],x68k_sys.crtc.reg[17],x68k_sys.crtc.reg[18],x68k_sys.crtc.reg[19]); |
| 1214 | | // popmessage("Video Controller registers - %04x - %04x - %04x",x68k_sys.video.reg[0],x68k_sys.video.reg[1],x68k_sys.video.reg[2]); |
| 1215 | 1223 | // popmessage("IOC IRQ status - %02x",x68k_sys.ioc.irqstatus); |
| 1216 | 1224 | // popmessage("RAM: mouse data - %02x %02x %02x %02x",mess_ram[0x931],mess_ram[0x930],mess_ram[0x933],mess_ram[0x932]); |
| 1217 | 1225 | #endif |