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

« back to all changes in this revision

Viewing changes to src/mame/video/cclimber.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:
550
550
}
551
551
 
552
552
 
553
 
static void cclimber_draw_sprites(bitmap_t *bitmap, gfx_element **gfx, const rectangle *cliprect)
 
553
static void cclimber_draw_sprites(bitmap_t *bitmap, const rectangle *cliprect, const gfx_element *gfx)
554
554
{
555
555
        int offs;
556
556
 
582
582
                        flipy = !flipy;
583
583
                }
584
584
 
585
 
                drawgfx(bitmap, gfx[1], code, color, flipx, flipy, x, y, cliprect, TRANSPARENCY_PEN, 0);
 
585
                drawgfx_transpen(bitmap, cliprect, gfx, code, color, flipx, flipy, x, y, 0);
586
586
        }
587
587
}
588
588
 
589
589
 
590
 
static void swimmer_draw_sprites(bitmap_t *bitmap, gfx_element **gfx, const rectangle *cliprect)
 
590
static void swimmer_draw_sprites(bitmap_t *bitmap, const rectangle *cliprect, const gfx_element *gfx)
591
591
{
592
592
        int offs;
593
593
 
619
619
                        flipy = !flipy;
620
620
                }
621
621
 
622
 
                drawgfx(bitmap, gfx[1], code, color, flipx, flipy, x, y, cliprect, TRANSPARENCY_PEN, 0);
 
622
                drawgfx_transpen(bitmap, cliprect, gfx, code, color, flipx, flipy, x, y, 0);
623
623
        }
624
624
}
625
625
 
633
633
        if ((cclimber_bigsprite_control[0] & 0x01))
634
634
        {
635
635
                cclimber_draw_bigsprite(bitmap, cliprect);
636
 
                cclimber_draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
636
                cclimber_draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
637
637
        }
638
638
 
639
639
        /* draw the "big sprite" over the regular sprites */
640
640
        else
641
641
        {
642
 
                cclimber_draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
642
                cclimber_draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
643
643
                cclimber_draw_bigsprite(bitmap, cliprect);
644
644
        }
645
645
 
667
667
        if ((cclimber_bigsprite_control[0] & 0x01))
668
668
        {
669
669
                cclimber_draw_bigsprite(bitmap, cliprect);
670
 
                cclimber_draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
670
                cclimber_draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
671
671
        }
672
672
 
673
673
        /* draw the "big sprite" over the regular sprites */
674
674
        else
675
675
        {
676
 
                cclimber_draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
676
                cclimber_draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
677
677
                cclimber_draw_bigsprite(bitmap, cliprect);
678
678
        }
679
679
 
719
719
        if ((cclimber_bigsprite_control[0] & 0x01))
720
720
        {
721
721
                cclimber_draw_bigsprite(bitmap, cliprect);
722
 
                swimmer_draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
722
                swimmer_draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
723
723
        }
724
724
 
725
725
        /* draw the "big sprite" over the regular sprites */
726
726
        else
727
727
        {
728
 
                swimmer_draw_sprites(bitmap, screen->machine->gfx, cliprect);
 
728
                swimmer_draw_sprites(bitmap, cliprect, screen->machine->gfx[1]);
729
729
                cclimber_draw_bigsprite(bitmap, cliprect);
730
730
        }
731
731
 
750
750
        /* draw the "big sprite" over the regular sprites */
751
751
        if ((cclimber_bigsprite_control[1] & 0x20))
752
752
        {
753
 
                cclimber_draw_sprites(bitmap, screen->machine->gfx, &scroll_area_clip);
 
753
                cclimber_draw_sprites(bitmap, &scroll_area_clip, screen->machine->gfx[1]);
754
754
                toprollr_draw_bigsprite(bitmap, &scroll_area_clip);
755
755
        }
756
756
 
758
758
        else
759
759
        {
760
760
                toprollr_draw_bigsprite(bitmap, &scroll_area_clip);
761
 
                cclimber_draw_sprites(bitmap, screen->machine->gfx, &scroll_area_clip);
 
761
                cclimber_draw_sprites(bitmap, &scroll_area_clip, screen->machine->gfx[1]);
762
762
        }
763
763
 
764
764
        tilemap_mark_all_tiles_dirty(pf_tilemap);