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

« back to all changes in this revision

Viewing changes to src/mame/video/docastle.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:
129
129
{
130
130
        int offs;
131
131
 
132
 
        bitmap_fill(priority_bitmap,NULL,1);
 
132
        bitmap_fill(machine->priority_bitmap,NULL,1);
133
133
 
134
134
        for (offs = spriteram_size - 4;offs >= 0;offs -= 4)
135
135
        {
197
197
                }
198
198
 
199
199
                /* first draw the sprite, visible */
200
 
                pdrawgfx(bitmap,machine->gfx[1],
 
200
                pdrawgfx_transmask(bitmap,cliprect,machine->gfx[1],
201
201
                                code,
202
202
                                color,
203
203
                                flipx,flipy,
204
204
                                sx,sy,
205
 
                                cliprect,TRANSPARENCY_PENS,0x80ff,
206
 
                                0x00);
 
205
                                machine->priority_bitmap,
 
206
                                0x00,0x80ff);
207
207
 
208
208
                /* then draw the mask, behind the background but obscuring following sprites */
209
 
                pdrawgfx(bitmap,machine->gfx[1],
 
209
                pdrawgfx_transmask(bitmap,cliprect,machine->gfx[1],
210
210
                                code,
211
211
                                color,
212
212
                                flipx,flipy,
213
213
                                sx,sy,
214
 
                                cliprect,TRANSPARENCY_PENS,0x7fff,
215
 
                                0x02);
 
214
                                machine->priority_bitmap,
 
215
                                0x02,0x7fff);
216
216
        }
217
217
}
218
218