trunk/src/mame/drivers/coolridr.c
| r21262 | r21263 | |
| 511 | 511 | UINT32 count; |
| 512 | 512 | int y,x; |
| 513 | 513 | int color; |
| 514 | | count = 0/4; |
| 515 | | color = m_color; |
| 516 | 514 | int scrollx; |
| 517 | 515 | int scrolly; |
| 518 | 516 | |
| 517 | count = 0/4; |
| 518 | m_color = 0; |
| 519 | |
| 519 | 520 | if (which==1) |
| 520 | 521 | { |
| 521 | 522 | count += 0x20000/4; |
| 522 | 523 | // color += 0x5e; |
| 523 | | color += 2; |
| 524 | m_color = 2; |
| 524 | 525 | } |
| 525 | 526 | else |
| 526 | 527 | { |
| 527 | 528 | // color += 0x4e; |
| 528 | 529 | // color += 0x0; |
| 529 | | |
| 530 | 530 | } |
| 531 | 531 | |
| 532 | 532 | scrollx = (m_framebuffer_vram[(0x9bac+which*0x40)/4] >> 16) & 0x7ff; |
| r21262 | r21263 | |
| 544 | 544 | res_y = (y*16)-scrolly; |
| 545 | 545 | |
| 546 | 546 | tile = (m_h1_vram[count] & 0x0fff0000) >> 16; |
| 547 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x,res_y); |
| 548 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x+2048,res_y); |
| 549 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x,res_y+1024); |
| 550 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x+2048,res_y+1024); |
| 547 | color = m_color + ((tile & 0x800) >> 11) * 4; |
| 551 | 548 | |
| 549 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x,res_y); |
| 550 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x+2048,res_y); |
| 551 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x,res_y+1024); |
| 552 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x+2048,res_y+1024); |
| 553 | |
| 552 | 554 | res_x = ((x+1)*16)-scrollx; |
| 553 | 555 | res_y = (y*16)-scrolly; |
| 554 | 556 | |
| 555 | 557 | tile = (m_h1_vram[count] & 0x00000fff) >> 0; |
| 556 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x,res_y); |
| 557 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x+2048,res_y); |
| 558 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x,res_y+1024); |
| 559 | | drawgfx_opaque(bitmap,cliprect,gfx,tile,color,0,0,res_x+2048,res_y+1024); |
| 558 | color = m_color + ((tile & 0x800) >> 11) * 4; |
| 560 | 559 | |
| 560 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x,res_y); |
| 561 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x+2048,res_y); |
| 562 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x,res_y+1024); |
| 563 | drawgfx_opaque(bitmap,cliprect,gfx,tile & 0x7ff,color,0,0,res_x+2048,res_y+1024); |
| 561 | 564 | |
| 565 | |
| 562 | 566 | count++; |
| 563 | 567 | } |
| 564 | 568 | } |