src/mess/video/x68k.c
| r4562 | r4563 | |
| 467 | 467 | bitmap_fill(x68k_gfx_0_bitmap_256,&rect,0); |
| 468 | 468 | bitmap_fill(x68k_gfx_0_bitmap_65536,&rect,0); |
| 469 | 469 | bitmap_fill(x68k_gfx_big_bitmap,&rect,0); |
| 470 | | memset(x68k_gvram,0,0x40000); |
| 470 | memset(x68k_gvram,0,0x20000); |
| 471 | 471 | } |
| 472 | 472 | if(x68k_sys.crtc.reg[21] & 0x02) |
| 473 | 473 | { |
| 474 | 474 | bitmap_fill(x68k_gfx_1_bitmap_16,&rect,0); |
| 475 | 475 | bitmap_fill(x68k_gfx_1_bitmap_256,&rect,0); |
| 476 | | memset(x68k_gvram+0x40000,0,0x40000); |
| 476 | memset(x68k_gvram+0x10000,0,0x20000); |
| 477 | 477 | } |
| 478 | 478 | if(x68k_sys.crtc.reg[21] & 0x04) |
| 479 | 479 | { |
| 480 | 480 | bitmap_fill(x68k_gfx_2_bitmap_16,&rect,0); |
| 481 | | memset(x68k_gvram+0x80000,0,0x40000); |
| 481 | memset(x68k_gvram+0x20000,0,0x20000); |
| 482 | 482 | } |
| 483 | 483 | if(x68k_sys.crtc.reg[21] & 0x08) |
| 484 | 484 | { |
| 485 | 485 | bitmap_fill(x68k_gfx_3_bitmap_16,&rect,0); |
| 486 | | memset(x68k_gvram+0xc0000,0,0x40000); |
| 486 | memset(x68k_gvram+0x30000,0,0x20000); |
| 487 | 487 | } |
| 488 | 488 | timer_set(space->machine, ATTOTIME_IN_MSEC(10), NULL, 0x02,x68k_crtc_operation_end); // time taken to do operation is a complete guess. |
| 489 | 489 | // popmessage("CRTC: High-speed gfx screen clear [0x%02x]",x68k_sys.crtc.reg[21] & 0x0f); |