~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/video/mcr68.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
        sprite_clip.max_x -= mcr68_sprite_clip;
218
218
        sect_rect(&sprite_clip, cliprect);
219
219
 
220
 
        bitmap_fill(priority_bitmap,&sprite_clip,1);
 
220
        bitmap_fill(machine->priority_bitmap,&sprite_clip,1);
221
221
 
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. */
250
250
 
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);
254
254
 
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);
258
258
        }
259
259
}
260
260
 
263
263
{
264
264
        int offs;
265
265
 
266
 
        bitmap_fill(priority_bitmap,cliprect,1);
 
266
        bitmap_fill(machine->priority_bitmap,cliprect,1);
267
267
 
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. */
306
306
 
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);
310
310
 
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);
314
314
        }
315
315
}
316
316