src/mess/drivers/pc6001.c
| r8699 | r8700 | |
| 248 | 248 | } |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | static void draw_border(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,int attr) |
| 252 | { |
| 253 | int x,y,color; |
| 254 | |
| 255 | for(y=0;y<240;y++) |
| 256 | { |
| 257 | for(x=0;x<320;x++) |
| 258 | { |
| 259 | if(attr & 0x80 && (!(attr & 0x10))) |
| 260 | color = ((attr & 2)<<1) + 8; |
| 261 | else |
| 262 | color = 0; //FIXME: other modes not yet checked |
| 263 | |
| 264 | *BITMAP_ADDR16(bitmap, y, x) = machine->pens[color]; |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 251 | 269 | static void pc6001_screen_draw(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect, int has_mc6847) |
| 252 | 270 | { |
| 253 | 271 | int x,y; |
| r8699 | r8700 | |
| 255 | 273 | |
| 256 | 274 | attr = pc6001_video_ram[0]; |
| 257 | 275 | |
| 276 | draw_border(machine,bitmap,cliprect,attr); |
| 277 | |
| 258 | 278 | if(attr & 0x80) // gfx mode |
| 259 | 279 | { |
| 260 | 280 | if(attr & 0x10) // 256x192x1 mode (FIXME: might be a different trigger) |