diff options
author | Angelo Salese <angelosa@users.noreply.github.com> | 2010-06-16 18:35:18 +0000 |
---|---|---|
committer | Angelo Salese <angelosa@users.noreply.github.com> | 2010-06-16 18:35:18 +0000 |
commit | d6a9271febdc20001eacba4908a5cc02cd914dea (patch) | |
tree | 3f46cb935c960ba464b414e4d4227e29e6d97c37 | |
parent | 848bf53c3d7e1093f262a9b8826e662dfb5fa473 (diff) |
Improved back layer
-rw-r--r-- | src/mame/drivers/pinkiri8.c | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/mame/drivers/pinkiri8.c b/src/mame/drivers/pinkiri8.c index aec639cf309..b2aa8efadf7 100644 --- a/src/mame/drivers/pinkiri8.c +++ b/src/mame/drivers/pinkiri8.c @@ -174,40 +174,15 @@ static VIDEO_UPDATE( pinkiri8 ) count = 0; - for(y=0;y<32;y++) + for(y=0;y<64;y++) { - for(x=0;x<64;x++) + for(x=0;x<32;x++) { tile = janshi_back_vram[count+1]<<8 | janshi_back_vram[count+0]; - attr = janshi_back_vram[count+2]; - col = 0x20; + attr = janshi_back_vram[count+2] ^ 0xf0; + col = (attr >> 4) | 0x10; - if(!(attr & 0x10)) - drawgfx_transpen(bitmap,cliprect,gfx,tile,col,0,0,x*8,y*8,0); - - count+=4; - } - } - } - - { - int x,y,col,tile,count,attr; - - count = 0; - - for(y=0;y<32;y++) - { - for(x=0;x<64;x++) - { - tile = janshi_back_vram[count+1]<<8 | janshi_back_vram[count+0]; - attr = janshi_back_vram[count+2]; - col = 0x20; - - if(attr & 0x10) - { - drawgfx_transpen(bitmap,cliprect,gfx,tile,col,0,0,x*8,(y*2+0)*8,0); - drawgfx_transpen(bitmap,cliprect,gfx,tile,col,0,0,x*8,(y*2+1)*8,0); - } + drawgfx_transpen(bitmap,cliprect,gfx,tile,col,0,0,x*16,y*8,0); count+=4; } |