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

« back to all changes in this revision

Viewing changes to src/mame/video/shangkid.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:
43
43
        }
44
44
 
45
45
        tileinfo.category =
46
 
                (machine.region( "proms" )->base()[0x800+color*4]==2)?1:0;
 
46
                (machine.root_device().memregion( "proms" )->base()[0x800+color*4]==2)?1:0;
47
47
}
48
48
 
49
49
VIDEO_START( shangkid )
52
52
        state->m_background = tilemap_create(machine, get_bg_tile_info,tilemap_scan_rows,8,8,64,32);
53
53
}
54
54
 
55
 
WRITE8_HANDLER( shangkid_videoram_w )
 
55
WRITE8_MEMBER(shangkid_state::shangkid_videoram_w)
56
56
{
57
 
        shangkid_state *state = space->machine().driver_data<shangkid_state>();
58
 
        UINT8 *videoram = state->m_videoram;
 
57
        UINT8 *videoram = m_videoram;
59
58
        videoram[offset] = data;
60
 
        state->m_background->mark_tile_dirty(offset&0x7ff );
 
59
        m_background->mark_tile_dirty(offset&0x7ff );
61
60
}
62
61
 
63
62
static void draw_sprite(running_machine &machine, const UINT8 *source, bitmap_ind16 &bitmap, const rectangle &cliprect)
202
201
 
203
202
PALETTE_INIT( dynamski )
204
203
{
 
204
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
205
205
        int i;
206
206
 
207
207
        /* allocate the colortable */