- 01629: [Graphics] raiga, stratof: broken colors on sprites (aaron) - Resolved.
- 01630: [Graphics] fstarfrc, ginkun, riot: broken colors on sprites (aaron) - Resolved.
- 01627: [Misc.] spbactn, spbactnj: Crashes with Access Violation (aaron) - Resolved.
This commit is contained in:
Aaron Giles 2008-03-28 09:57:56 +00:00
parent ed961330b6
commit ce1da5c445
3 changed files with 32 additions and 30 deletions

View File

@ -363,10 +363,10 @@ static void gaiden_draw_sprites(running_machine *machine, bitmap_t *bitmap, cons
pdrawgfx(bitmap, gfx,
number + layout[row][col],
color,
gfx->color_base + color * gfx->color_granularity,
flipx, flipy,
sx, sy,
cliprect, TRANSPARENCY_PEN, 0,
cliprect, TRANSPARENCY_PEN_RAW, 0,
priority_mask);
}
}
@ -464,10 +464,10 @@ static void raiga_draw_sprites(running_machine *machine, bitmap_t *bitmap_bg, bi
pdrawgfx(bitmap_sp, gfx,
number + layout[row][col],
color,
gfx->color_base + color * gfx->color_granularity,
flipx, flipy,
sx, sy,
cliprect, TRANSPARENCY_PEN, 0,
cliprect, TRANSPARENCY_PEN_RAW, 0,
priority_mask);
}
}
@ -485,10 +485,10 @@ static void raiga_draw_sprites(running_machine *machine, bitmap_t *bitmap_bg, bi
pdrawgfx(bitmap, gfx,
number + layout[row][col],
color,
gfx->color_base + color * gfx->color_granularity,
flipx, flipy,
sx, sy,
cliprect, TRANSPARENCY_PEN, 0,
cliprect, TRANSPARENCY_PEN_RAW, 0,
priority_mask);
}
}
@ -543,17 +543,19 @@ static void drgnbowl_draw_sprites(running_machine *machine, bitmap_t *bitmap, co
pdrawgfx(bitmap,machine->gfx[3],
code,
color,flipx,flipy,x,y,
machine->gfx[3]->color_base + color * machine->gfx[3]->color_granularity,
flipx,flipy,x,y,
cliprect,
TRANSPARENCY_PEN,15,
TRANSPARENCY_PEN_RAW,15,
priority_mask);
/* wrap x*/
pdrawgfx(bitmap,machine->gfx[3],
code,
color,flipx,flipy,x-512,y,
machine->gfx[3]->color_base + color * machine->gfx[3]->color_granularity,
flipx,flipy,x-512,y,
cliprect,
TRANSPARENCY_PEN,15,
TRANSPARENCY_PEN_RAW,15,
priority_mask);
}

View File

@ -92,10 +92,10 @@ static int draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectan
drawgfx(bitmap, machine->gfx[2],
code + layout[row][col],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx, flipy,
x, y,
cliprect, TRANSPARENCY_PEN, 0);
cliprect, TRANSPARENCY_PEN_RAW, 0);
}
}
@ -135,10 +135,10 @@ VIDEO_UPDATE( spbactn )
drawgfx(tile_bitmap_bg, screen->machine->gfx[1],
code,
color,
screen->machine->gfx[1]->color_base + color * screen->machine->gfx[1]->color_granularity,
0, 0,
16 * sx, 8 * sy,
cliprect, TRANSPARENCY_NONE, 0);
cliprect, TRANSPARENCY_PEN_RAW, -1);
sx++;
if (sx > 63)
@ -162,10 +162,10 @@ VIDEO_UPDATE( spbactn )
drawgfx(tile_bitmap_bg, screen->machine->gfx[1],
code,
color,
screen->machine->gfx[1]->color_base + color * screen->machine->gfx[1]->color_granularity,
0, 0,
16 * sx, 8 * sy,
cliprect, TRANSPARENCY_PEN, 0);
cliprect, TRANSPARENCY_PEN_RAW, 0);
sx++;
if (sx > 63)
@ -196,10 +196,10 @@ VIDEO_UPDATE( spbactn )
drawgfx(tile_bitmap_fg, screen->machine->gfx[0],
code,
color,
screen->machine->gfx[0]->color_base + color * screen->machine->gfx[0]->color_granularity,
0, 0,
16 * sx, 8 * sy,
cliprect, TRANSPARENCY_PEN, 0);
cliprect, TRANSPARENCY_PEN_RAW, 0);
sx++;
if (sx > 63)

View File

@ -413,28 +413,28 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap_bg, bitmap_t
}
pdrawgfx(bitmap,machine->gfx[2],
code + layout[y][x],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx,flipy,
sx,sy,
cliprect,TRANSPARENCY_PEN,0,
cliprect,TRANSPARENCY_PEN_RAW,0,
priority_mask);
/* wrap around x */
pdrawgfx(bitmap,machine->gfx[2],
code + layout[y][x],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx,flipy,
sx-512,sy,
cliprect,TRANSPARENCY_PEN,0,
cliprect,TRANSPARENCY_PEN_RAW,0,
priority_mask);
/* wrap around x */
pdrawgfx(bitmap,machine->gfx[2],
code + layout[y][x],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx,flipy,
sx+512,sy,
cliprect,TRANSPARENCY_PEN,0,
cliprect,TRANSPARENCY_PEN_RAW,0,
priority_mask);
}
}
@ -459,28 +459,28 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap_bg, bitmap_t
}
pdrawgfx(bitmap,machine->gfx[2],
code + layout[y][x],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx,flipy,
sx,sy,
cliprect,TRANSPARENCY_PEN,0,
cliprect,TRANSPARENCY_PEN_RAW,0,
priority_mask);
/* wrap around x */
pdrawgfx(bitmap,machine->gfx[2],
code + layout[y][x],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx,flipy,
sx-512,sy,
cliprect,TRANSPARENCY_PEN,0,
cliprect,TRANSPARENCY_PEN_RAW,0,
priority_mask);
/* wrap around x */
pdrawgfx(bitmap,machine->gfx[2],
code + layout[y][x],
color,
machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity,
flipx,flipy,
sx+512,sy,
cliprect,TRANSPARENCY_PEN,0,
cliprect,TRANSPARENCY_PEN_RAW,0,
priority_mask);
}
}