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

« back to all changes in this revision

Viewing changes to src/mame/video/wc90.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:
106
106
 
107
107
***************************************************************************/
108
108
 
109
 
WRITE8_HANDLER( wc90_bgvideoram_w )
110
 
{
111
 
        wc90_state *state = space->machine().driver_data<wc90_state>();
112
 
        state->m_bgvideoram[offset] = data;
113
 
        state->m_bg_tilemap->mark_tile_dirty(offset & 0x7ff);
114
 
}
115
 
 
116
 
WRITE8_HANDLER( wc90_fgvideoram_w )
117
 
{
118
 
        wc90_state *state = space->machine().driver_data<wc90_state>();
119
 
        state->m_fgvideoram[offset] = data;
120
 
        state->m_fg_tilemap->mark_tile_dirty(offset & 0x7ff);
121
 
}
122
 
 
123
 
WRITE8_HANDLER( wc90_txvideoram_w )
124
 
{
125
 
        wc90_state *state = space->machine().driver_data<wc90_state>();
126
 
        state->m_txvideoram[offset] = data;
127
 
        state->m_tx_tilemap->mark_tile_dirty(offset & 0x7ff);
 
109
WRITE8_MEMBER(wc90_state::wc90_bgvideoram_w)
 
110
{
 
111
        m_bgvideoram[offset] = data;
 
112
        m_bg_tilemap->mark_tile_dirty(offset & 0x7ff);
 
113
}
 
114
 
 
115
WRITE8_MEMBER(wc90_state::wc90_fgvideoram_w)
 
116
{
 
117
        m_fgvideoram[offset] = data;
 
118
        m_fg_tilemap->mark_tile_dirty(offset & 0x7ff);
 
119
}
 
120
 
 
121
WRITE8_MEMBER(wc90_state::wc90_txvideoram_w)
 
122
{
 
123
        m_txvideoram[offset] = data;
 
124
        m_tx_tilemap->mark_tile_dirty(offset & 0x7ff);
128
125
}
129
126
 
130
127
 
322
319
        int offs, sx,sy, flags, which;
323
320
 
324
321
        /* draw all visible sprites of specified priority */
325
 
        for (offs = 0;offs < state->m_spriteram_size;offs += 16){
 
322
        for (offs = 0;offs < state->m_spriteram.bytes();offs += 16){
326
323
                int bank = spriteram[offs+0];
327
324
 
328
325
                if ( ( bank >> 4 ) == priority ) {