~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, const int *primasks, int y_offs )
67
67
{
68
68
        othunder_state *state = machine.driver_data<othunder_state>();
69
 
        UINT16 *spritemap = (UINT16 *)machine.region("user1")->base();
 
69
        UINT16 *spritemap = (UINT16 *)state->memregion("user1")->base();
70
70
        UINT16 tile_mask = (machine.gfx[0]->total_elements) - 1;
71
71
        UINT16 *spriteram16 = state->m_spriteram;
72
72
        int offs, data, tilenum, color, flipx, flipy;
80
80
       while processing sprite ram and then draw them all at the end */
81
81
        struct othunder_tempsprite *sprite_ptr = state->m_spritelist;
82
82
 
83
 
        for (offs = (state->m_spriteram_size / 2) - 4; offs >= 0; offs -= 4)
 
83
        for (offs = (state->m_spriteram.bytes() / 2) - 4; offs >= 0; offs -= 4)
84
84
        {
85
85
                data = spriteram16[offs + 0];
86
86
                zoomy = (data & 0xfe00) >> 9;