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

« back to all changes in this revision

Viewing changes to src/mame/video/groundfx.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:
64
64
{
65
65
        groundfx_state *state = machine.driver_data<groundfx_state>();
66
66
        UINT32 *spriteram32 = state->m_spriteram;
67
 
        UINT16 *spritemap = (UINT16 *)machine.region("user1")->base();
 
67
        UINT16 *spritemap = (UINT16 *)state->memregion("user1")->base();
68
68
        int offs, data, tilenum, color, flipx, flipy;
69
69
        int x, y, priority, dblsize, curx, cury;
70
70
        int sprites_flipscreen = 0;
77
77
       while processing sprite ram and then draw them all at the end */
78
78
        struct tempsprite *sprite_ptr = state->m_spritelist;
79
79
 
80
 
        for (offs = (state->m_spriteram_size/4-4);offs >= 0;offs -= 4)
 
80
        for (offs = (state->m_spriteram.bytes()/4-4);offs >= 0;offs -= 4)
81
81
        {
82
82
                data = spriteram32[offs+0];
83
83
                flipx =    (data & 0x00800000) >> 23;