mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
Game should probably be promoted to working now, I'll do that tomorrow after a bit of test...
This commit is contained in:
parent
4ef8a7333f
commit
1bedf42c94
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user