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

« back to all changes in this revision

Viewing changes to src/mame/video/battlera.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:
285
285
                if (fy) { my += 16*(cgy-1); yinc = -16; } /* Swap tile order on Y flips */
286
286
 
287
287
                for (i=0; i<cgy; i++) {
288
 
                        drawgfx(bitmap,machine->gfx[1],
 
288
                        drawgfx_transpen(bitmap,clip,machine->gfx[1],
289
289
                                code,
290
290
                                colour,
291
291
                                fx,fy,
292
 
                                mx,my,
293
 
                                clip,TRANSPARENCY_PEN,0);
 
292
                                mx,my,0);
294
293
 
295
294
                        if (cgx)
296
 
                                drawgfx(bitmap,machine->gfx[1],
 
295
                                drawgfx_transpen(bitmap,clip,machine->gfx[1],
297
296
                                                code2,
298
297
                                                colour,
299
298
                                                fx,fy,
300
 
                                                mx+16,my,
301
 
                                                clip,TRANSPARENCY_PEN,0);
 
299
                                                mx+16,my,0);
302
300
                        my += yinc;
303
301
                        /* if (cgx) */ /* Different from console? */
304
302
                        code += 2;
333
331
                /* If this tile was changed OR tilemap was changed, redraw */
334
332
                if (vram_dirty[offs/2]) {
335
333
                        vram_dirty[offs/2]=0;
336
 
                drawgfx(tile_bitmap,screen->machine->gfx[0],
 
334
                drawgfx_opaque(tile_bitmap,0,screen->machine->gfx[0],
337
335
                                        code,
338
336
                                        HuC6270_vram[offs] >> 4,
339
337
                                        0,0,
340
 
                                        8*mx,8*my,
341
 
                                        0,TRANSPARENCY_NONE,0);
342
 
                        drawgfx(front_bitmap,screen->machine->gfx[2],
 
338
                                        8*mx,8*my);
 
339
                        drawgfx_opaque(front_bitmap,0,screen->machine->gfx[2],
343
340
                                        0,
344
341
                                        0,      /* fill the spot with pen 256 */
345
342
                                        0,0,
346
 
                                        8*mx,8*my,
347
 
                                        0,TRANSPARENCY_NONE,0);
348
 
                drawgfx(front_bitmap,screen->machine->gfx[0],
 
343
                                        8*mx,8*my);
 
344
                drawgfx_transmask(front_bitmap,0,screen->machine->gfx[0],
349
345
                                        code,
350
346
                                        HuC6270_vram[offs] >> 4,
351
347
                                        0,0,
352
 
                                        8*mx,8*my,
353
 
                                        0,TRANSPARENCY_PENS,0x1);
 
348
                                        8*mx,8*my,0x1);
354
349
                        }
355
350
        }
356
351