src/mess/drivers/pc6001.c
| r8736 | r8737 | |
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | | static void draw_border(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr) |
| 272 | static void draw_border(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr,int has_mc6847) |
| 273 | 273 | { |
| 274 | 274 | int x,y,color; |
| 275 | 275 | |
| r8736 | r8737 | |
| 277 | 277 | { |
| 278 | 278 | for(x=0;x<320;x++) |
| 279 | 279 | { |
| 280 | | if((attr & 0x90) == 0x80) //2bpp |
| 280 | if(!has_mc6847) //mk2 border color is always black |
| 281 | color = 0; |
| 282 | else if((attr & 0x90) == 0x80) //2bpp |
| 281 | 283 | color = ((attr & 2)<<1) + 8; |
| 282 | 284 | else if((attr & 0x90) == 0x90) //1bpp |
| 283 | | color = (attr & 2) ? 7 : 2; //FIXME: colors aren't right there either |
| 285 | color = (attr & 2) ? 7 : 2; |
| 284 | 286 | else |
| 285 | 287 | color = 0; //FIXME: other modes not yet checked |
| 286 | 288 | |
| r8736 | r8737 | |
| 296 | 298 | |
| 297 | 299 | attr = pc6001_video_ram[0]; |
| 298 | 300 | |
| 299 | | draw_border(machine,bitmap,cliprect,attr); |
| 301 | draw_border(machine,bitmap,cliprect,attr,has_mc6847); |
| 300 | 302 | |
| 301 | 303 | if(attr & 0x80) // gfx mode |
| 302 | 304 | { |