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

« back to all changes in this revision

Viewing changes to src/mame/video/rainbow.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:
12
12
 
13
13
/***************************************************************************/
14
14
 
15
 
WRITE16_HANDLER( rbisland_spritectrl_w )
 
15
WRITE16_MEMBER(rbisland_state::rbisland_spritectrl_w)
16
16
{
17
 
        rbisland_state *state = space->machine().driver_data<rbisland_state>();
18
17
 
19
18
        if (offset == 0)
20
19
        {
22
21
                /* bits 5-7 are the sprite palette bank */
23
22
                /* other bits unknown */
24
23
 
25
 
                pc090oj_set_sprite_ctrl(state->m_pc090oj, (data & 0xe0) >> 5);
 
24
                pc090oj_set_sprite_ctrl(m_pc090oj, (data & 0xe0) >> 5);
26
25
        }
27
26
}
28
27
 
29
 
WRITE16_HANDLER( jumping_spritectrl_w )
 
28
WRITE16_MEMBER(rbisland_state::jumping_spritectrl_w)
30
29
{
31
 
        rbisland_state *state = space->machine().driver_data<rbisland_state>();
32
30
 
33
31
        if (offset == 0)
34
32
        {
36
34
                /* bits 5-7 are the sprite palette bank */
37
35
                /* other bits unknown */
38
36
 
39
 
                state->m_sprite_ctrl = data;
 
37
                m_sprite_ctrl = data;
40
38
        }
41
39
}
42
40
 
107
105
        pc080sn_tilemap_draw(state->m_pc080sn, bitmap, cliprect, layer[0], TILEMAP_DRAW_OPAQUE, 0);
108
106
 
109
107
        /* Draw the sprites. 128 sprites in total */
110
 
        for (offs = state->m_spriteram_size / 2 - 8; offs >= 0; offs -= 8)
 
108
        for (offs = state->m_spriteram.bytes() / 2 - 8; offs >= 0; offs -= 8)
111
109
        {
112
110
                int tile = spriteram[offs];
113
111
                if (tile < screen.machine().gfx[1]->total_elements)