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

« back to all changes in this revision

Viewing changes to src/mame/video/stlforce.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:
16
16
        SET_TILE_INFO(0,tileno,colour,0);
17
17
}
18
18
 
19
 
WRITE16_HANDLER( stlforce_bg_videoram_w )
 
19
WRITE16_MEMBER(stlforce_state::stlforce_bg_videoram_w)
20
20
{
21
 
        stlforce_state *state = space->machine().driver_data<stlforce_state>();
22
21
 
23
 
        state->m_bg_videoram[offset] = data;
24
 
        state->m_bg_tilemap->mark_tile_dirty(offset);
 
22
        m_bg_videoram[offset] = data;
 
23
        m_bg_tilemap->mark_tile_dirty(offset);
25
24
}
26
25
 
27
26
/* middle layer, low */
40
39
        SET_TILE_INFO(0,tileno,colour,0);
41
40
}
42
41
 
43
 
WRITE16_HANDLER( stlforce_mlow_videoram_w )
 
42
WRITE16_MEMBER(stlforce_state::stlforce_mlow_videoram_w)
44
43
{
45
 
        stlforce_state *state = space->machine().driver_data<stlforce_state>();
46
44
 
47
 
        state->m_mlow_videoram[offset] = data;
48
 
        state->m_mlow_tilemap->mark_tile_dirty(offset);
 
45
        m_mlow_videoram[offset] = data;
 
46
        m_mlow_tilemap->mark_tile_dirty(offset);
49
47
}
50
48
 
51
49
/* middle layer, high */
64
62
        SET_TILE_INFO(0,tileno,colour,0);
65
63
}
66
64
 
67
 
WRITE16_HANDLER( stlforce_mhigh_videoram_w )
 
65
WRITE16_MEMBER(stlforce_state::stlforce_mhigh_videoram_w)
68
66
{
69
 
        stlforce_state *state = space->machine().driver_data<stlforce_state>();
70
67
 
71
 
        state->m_mhigh_videoram[offset] = data;
72
 
        state->m_mhigh_tilemap->mark_tile_dirty(offset);
 
68
        m_mhigh_videoram[offset] = data;
 
69
        m_mhigh_tilemap->mark_tile_dirty(offset);
73
70
}
74
71
 
75
72
/* text layer, appears to be the top layer */
89
86
        SET_TILE_INFO(1,tileno,colour,0);
90
87
}
91
88
 
92
 
WRITE16_HANDLER( stlforce_tx_videoram_w )
 
89
WRITE16_MEMBER(stlforce_state::stlforce_tx_videoram_w)
93
90
{
94
 
        stlforce_state *state = space->machine().driver_data<stlforce_state>();
95
91
 
96
 
        state->m_tx_videoram[offset] = data;
97
 
        state->m_tx_tilemap->mark_tile_dirty(offset);
 
92
        m_tx_videoram[offset] = data;
 
93
        m_tx_tilemap->mark_tile_dirty(offset);
98
94
}
99
95
 
100
96
/* sprites - quite a bit still needs doing .. */