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

« back to all changes in this revision

Viewing changes to src/mame/video/undrfire.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:
68
68
{
69
69
        undrfire_state *state = machine.driver_data<undrfire_state>();
70
70
        UINT32 *spriteram32 = state->m_spriteram;
71
 
        UINT16 *spritemap = (UINT16 *)machine.region("user1")->base();
 
71
        UINT16 *spritemap = (UINT16 *)state->memregion("user1")->base();
72
72
        int offs, data, tilenum, color, flipx, flipy;
73
73
        int x, y, priority, dblsize, curx, cury;
74
74
        int sprites_flipscreen = 0;
80
80
       while processing sprite ram and then draw them all at the end */
81
81
        struct tempsprite *sprite_ptr = state->m_spritelist;
82
82
 
83
 
        for (offs = (state->m_spriteram_size/4-4);offs >= 0;offs -= 4)
 
83
        for (offs = (state->m_spriteram.bytes()/4-4);offs >= 0;offs -= 4)
84
84
        {
85
85
                data = spriteram32[offs+0];
86
86
                flipx =    (data & 0x00800000) >> 23;
212
212
{
213
213
        undrfire_state *state = machine.driver_data<undrfire_state>();
214
214
        UINT32 *spriteram32 = state->m_spriteram;
215
 
        UINT16 *spritemap = (UINT16 *)machine.region("user1")->base();
216
 
        UINT8 *spritemapHibit = (UINT8 *)machine.region("user2")->base();
 
215
        UINT16 *spritemap = (UINT16 *)state->memregion("user1")->base();
 
216
        UINT8 *spritemapHibit = (UINT8 *)state->memregion("user2")->base();
217
217
 
218
218
        int offs, data, tilenum, color, flipx, flipy;
219
219
        int x, y, priority, dblsize, curx, cury;
226
226
       while processing sprite ram and then draw them all at the end */
227
227
        struct tempsprite *sprite_ptr = state->m_spritelist;
228
228
 
229
 
        for (offs = (state->m_spriteram_size/4-4);offs >= 0;offs -= 4)
 
229
        for (offs = (state->m_spriteram.bytes()/4-4);offs >= 0;offs -= 4)
230
230
        {
231
231
                data = spriteram32[offs+0];
232
232
                flipx =    (data & 0x00800000) >> 23;
468
468
        /* See if we should draw artificial gun targets */
469
469
        /* (not yet implemented...) */
470
470
 
471
 
        if (input_port_read(screen.machine(), "FAKE") & 0x1)    /* Fake DSW */
 
471
        if (screen.machine().root_device().ioport("FAKE")->read() & 0x1)        /* Fake DSW */
472
472
        {
473
473
                popmessage("Gunsights on");
474
474
        }