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

« back to all changes in this revision

Viewing changes to src/mame/video/legionna.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:
15
15
/******************************************************************************/
16
16
 
17
17
static UINT16 back_gfx_bank = 0,fore_gfx_bank = 0,mid_gfx_bank = 0;
18
 
UINT8 sdgndmrb_pri_n;
 
18
UINT8 grainbow_pri_n;
19
19
 
20
20
void heatbrl_setgfxbank(UINT16 data)
21
21
{
285
285
                                for (ax=0; ax<dx; ax++)
286
286
                                        for (ay=0; ay<dy; ay++)
287
287
                                        {
288
 
                                                drawgfx(bitmap,machine->gfx[3],
 
288
                                                drawgfx_transpen(bitmap,cliprect,machine->gfx[3],
289
289
                                                sprite++,
290
 
                                                color,fx,fy,x+ax*16,y+ay*16,
291
 
                                                cliprect,TRANSPARENCY_PEN,15);
 
290
                                                color,fx,fy,x+ax*16,y+ay*16,15);
292
291
                                        }
293
292
                        }
294
293
                        else
296
295
                                for (ax=0; ax<dx; ax++)
297
296
                                        for (ay=0; ay<dy; ay++)
298
297
                                        {
299
 
                                                drawgfx(bitmap,machine->gfx[3],
 
298
                                                drawgfx_transpen(bitmap,cliprect,machine->gfx[3],
300
299
                                                sprite++,
301
 
                                                color,fx,fy,x+ax*16,y+(dy-ay-1)*16,
302
 
                                                cliprect,TRANSPARENCY_PEN,15);
 
300
                                                color,fx,fy,x+ax*16,y+(dy-ay-1)*16,15);
303
301
                                        }
304
302
                        }
305
303
                }
310
308
                                for (ax=0; ax<dx; ax++)
311
309
                                        for (ay=0; ay<dy; ay++)
312
310
                                        {
313
 
                                                drawgfx(bitmap,machine->gfx[3],
 
311
                                                drawgfx_transpen(bitmap,cliprect,machine->gfx[3],
314
312
                                                sprite++,
315
 
                                                color,fx,fy,x+(dx-ax-1)*16,y+ay*16,
316
 
                                                cliprect,TRANSPARENCY_PEN,15);
 
313
                                                color,fx,fy,x+(dx-ax-1)*16,y+ay*16,15);
317
314
                                        }
318
315
                        }
319
316
                        else
321
318
                                for (ax=0; ax<dx; ax++)
322
319
                                        for (ay=0; ay<dy; ay++)
323
320
                                        {
324
 
                                                drawgfx(bitmap,machine->gfx[3],
 
321
                                                drawgfx_transpen(bitmap,cliprect,machine->gfx[3],
325
322
                                                sprite++,
326
 
                                                color,fx,fy,x+(dx-ax-1)*16,y+(dy-ay-1)*16,
327
 
                                                cliprect,TRANSPARENCY_PEN,15);
 
323
                                                color,fx,fy,x+(dx-ax-1)*16,y+(dy-ay-1)*16,15);
328
324
                                        }
329
325
                        }
330
326
                }
409
405
        return 0;
410
406
}
411
407
 
412
 
VIDEO_UPDATE( sdgndmrb )
 
408
VIDEO_UPDATE( grainbow )
413
409
{
414
410
        /* Setup the tilemaps */
415
411
        tilemap_set_scrollx( background_layer, 0, legionna_scrollram16[0] );
423
419
 
424
420
        bitmap_fill(bitmap,cliprect,get_black_pen(screen->machine));
425
421
 
426
 
        if(!(sdgndmrb_pri_n & 1))
 
422
        if(!(grainbow_pri_n & 1))
427
423
                tilemap_draw(bitmap,cliprect,background_layer,0,0);
428
424
        draw_sprites(screen->machine,bitmap,cliprect,2);
429
425
 
430
 
        if(!(sdgndmrb_pri_n & 2))
 
426
        if(!(grainbow_pri_n & 2))
431
427
                tilemap_draw(bitmap,cliprect,midground_layer,0,0);
432
428
 
433
429
        draw_sprites(screen->machine,bitmap,cliprect,1);
434
430
 
435
 
        if(!(sdgndmrb_pri_n & 4))
 
431
        if(!(grainbow_pri_n & 4))
436
432
                tilemap_draw(bitmap,cliprect,foreground_layer,0,0);
437
433
 
438
434
        draw_sprites(screen->machine,bitmap,cliprect,0);
439
435
 
440
436
        draw_sprites(screen->machine,bitmap,cliprect,3);
441
437
 
442
 
        if(!(sdgndmrb_pri_n & 8))
 
438
        if(!(grainbow_pri_n & 8))
443
439
                tilemap_draw(bitmap,cliprect,text_layer,0,0);
444
440
 
445
441
        return 0;