diff options
| author | 2009-06-06 21:02:09 +0000 | |
|---|---|---|
| committer | 2009-06-06 21:02:09 +0000 | |
| commit | 1bedf42c940d23d3e041bac86692d7450f87dfc2 (patch) | |
| tree | 1db24f53d1ab9ad2f6eb5a9a5ab80f7249bb9bef | |
| parent | 4ef8a7333f5511cd00271d31cdc6f72fa75572e2 (diff) | |
Game should probably be promoted to working now, I'll do that tomorrow after a bit of test...
| -rw-r--r-- | src/mame/drivers/mirax.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mame/drivers/mirax.c b/src/mame/drivers/mirax.c index 0e728c04fda..1c9d20901c0 100644 --- a/src/mame/drivers/mirax.c +++ b/src/mame/drivers/mirax.c @@ -92,14 +92,7 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta color = spriteram[count+2] & 0x7; /* TODO: understand this */ - if(spriteram[count+2] & 0x80) - spr_offs+=0x200; - - if(spriteram[count+2] & 0x40) - spr_offs+=0x80; - - if(spriteram[count+2] & 0x20) - spr_offs+=0x100; + spr_offs += 2*(spriteram[count+2] & 0xf0); y = 0x100 - spriteram[count]; x = spriteram[count+3]; @@ -112,10 +105,8 @@ static VIDEO_UPDATE(mirax) { const gfx_element *gfx = screen->machine->gfx[0]; int count = 0x00000; - int y,x; - for (y=0;y<32;y++) { for (x=0;x<32;x++) @@ -125,6 +116,8 @@ static VIDEO_UPDATE(mirax) int x_scroll = (color & 0xff00)>>8; tile|= ((color & 0x80)<<3) | ((color & 0x20)<<3); + if(color & 0x40) { tile+= 0x200; } + //int colour = tile>>12; drawgfx(bitmap,gfx,tile,color & 7,0,0,(x*8),(y*8)-x_scroll,cliprect,TRANSPARENCY_NONE,0); drawgfx(bitmap,gfx,tile,color & 7,0,0,(x*8),(y*8)-x_scroll+256,cliprect,TRANSPARENCY_NONE,0); |
