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

« back to all changes in this revision

Viewing changes to src/mame/video/raiden.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:
4
4
 
5
5
/******************************************************************************/
6
6
 
7
 
WRITE16_HANDLER( raiden_background_w )
8
 
{
9
 
        raiden_state *state = space->machine().driver_data<raiden_state>();
10
 
        COMBINE_DATA(&state->m_back_data[offset]);
11
 
        state->m_bg_layer->mark_tile_dirty(offset);
12
 
}
13
 
 
14
 
WRITE16_HANDLER( raiden_foreground_w )
15
 
{
16
 
        raiden_state *state = space->machine().driver_data<raiden_state>();
17
 
        COMBINE_DATA(&state->m_fore_data[offset]);
18
 
        state->m_fg_layer->mark_tile_dirty(offset);
19
 
}
20
 
 
21
 
WRITE16_HANDLER( raiden_text_w )
22
 
{
23
 
        raiden_state *state = space->machine().driver_data<raiden_state>();
24
 
        UINT16 *videoram = state->m_videoram;
 
7
WRITE16_MEMBER(raiden_state::raiden_background_w)
 
8
{
 
9
        COMBINE_DATA(&m_back_data[offset]);
 
10
        m_bg_layer->mark_tile_dirty(offset);
 
11
}
 
12
 
 
13
WRITE16_MEMBER(raiden_state::raiden_foreground_w)
 
14
{
 
15
        COMBINE_DATA(&m_fore_data[offset]);
 
16
        m_fg_layer->mark_tile_dirty(offset);
 
17
}
 
18
 
 
19
WRITE16_MEMBER(raiden_state::raiden_text_w)
 
20
{
 
21
        UINT16 *videoram = m_videoram;
25
22
        COMBINE_DATA(&videoram[offset]);
26
 
        state->m_tx_layer->mark_tile_dirty(offset);
 
23
        m_tx_layer->mark_tile_dirty(offset);
27
24
}
28
25
 
29
26
static TILE_GET_INFO( get_back_tile_info )
95
92
        state->m_tx_layer->set_transparent_pen(15);
96
93
}
97
94
 
98
 
WRITE16_HANDLER( raiden_control_w )
 
95
WRITE16_MEMBER(raiden_state::raiden_control_w)
99
96
{
100
 
        raiden_state *state = space->machine().driver_data<raiden_state>();
101
97
        /* All other bits unknown - could be playfield enables */
102
98
 
103
99
        /* Flipscreen */
104
100
        if (offset==3 && ACCESSING_BITS_0_7) {
105
 
                state->m_flipscreen=data&0x2;
106
 
                space->machine().tilemap().set_flip_all(state->m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
101
                m_flipscreen=data&0x2;
 
102
                machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
107
103
        }
108
104
}
109
105
 
110
 
WRITE16_HANDLER( raidena_control_w )
 
106
WRITE16_MEMBER(raiden_state::raidena_control_w)
111
107
{
112
 
        raiden_state *state = space->machine().driver_data<raiden_state>();
113
108
        /* raidena uses 0x40 instead of 0x02 */
114
109
 
115
110
        /* Flipscreen */
116
111
        if (offset==3 && ACCESSING_BITS_0_7) {
117
 
                state->m_flipscreen=data&0x40;
118
 
                space->machine().tilemap().set_flip_all(state->m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
112
                m_flipscreen=data&0x40;
 
113
                machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
119
114
        }
120
115
}
121
116
 
122
117
static void draw_sprites(running_machine &machine, bitmap_ind16 &bitmap,const rectangle &cliprect,int pri_mask)
123
118
{
124
119
        raiden_state *state = machine.driver_data<raiden_state>();
125
 
        UINT16 *buffered_spriteram16 = machine.generic.buffered_spriteram.u16;
 
120
        UINT16 *buffered_spriteram16 = state->m_spriteram->buffer();
126
121
        int offs,fx,fy,x,y,color,sprite;
127
122
 
128
123
        for (offs = 0x1000/2-4;offs >= 0;offs -= 4)