217
217
sprite_clip.max_x -= mcr68_sprite_clip;
218
218
sect_rect(&sprite_clip, cliprect);
220
bitmap_fill(priority_bitmap,&sprite_clip,1);
220
bitmap_fill(machine->priority_bitmap,&sprite_clip,1);
222
222
/* loop over sprite RAM */
223
223
for (offs = spriteram_size / 2 - 4;offs >= 0;offs -= 4)
249
249
The color 8 is used to cover over other sprites. */
251
251
/* first draw the sprite, visible */
252
pdrawgfx(bitmap, machine->gfx[1], code, color, flipx, flipy, x, y,
253
&sprite_clip, TRANSPARENCY_PENS, 0x0101, 0x00);
252
pdrawgfx_transmask(bitmap, &sprite_clip, machine->gfx[1], code, color, flipx, flipy, x, y,
253
machine->priority_bitmap, 0x00, 0x0101);
255
255
/* then draw the mask, behind the background but obscuring following sprites */
256
pdrawgfx(bitmap, machine->gfx[1], code, color, flipx, flipy, x, y,
257
&sprite_clip, TRANSPARENCY_PENS, 0xfeff, 0x02);
256
pdrawgfx_transmask(bitmap, &sprite_clip, machine->gfx[1], code, color, flipx, flipy, x, y,
257
machine->priority_bitmap, 0x02, 0xfeff);
266
bitmap_fill(priority_bitmap,cliprect,1);
266
bitmap_fill(machine->priority_bitmap,cliprect,1);
268
268
/* loop over sprite RAM */
269
269
for (offs = spriteram_size / 2 - 4;offs >= 0;offs -= 4)
305
305
The color 8 is used to cover over other sprites. */
307
307
/* first draw the sprite, visible */
308
pdrawgfx(bitmap, machine->gfx[1], code, color, flipx, flipy, x, y,
309
cliprect, TRANSPARENCY_PENS, 0x0101, 0x00);
308
pdrawgfx_transmask(bitmap, cliprect, machine->gfx[1], code, color, flipx, flipy, x, y,
309
machine->priority_bitmap, 0x00, 0x0101);
311
311
/* then draw the mask, behind the background but obscuring following sprites */
312
pdrawgfx(bitmap, machine->gfx[1], code, color, flipx, flipy, x, y,
313
cliprect, TRANSPARENCY_PENS, 0xfeff, 0x02);
312
pdrawgfx_transmask(bitmap, cliprect, machine->gfx[1], code, color, flipx, flipy, x, y,
313
machine->priority_bitmap, 0x02, 0xfeff);