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

« back to all changes in this revision

Viewing changes to src/mame/video/compgolf.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:
11
11
 
12
12
PALETTE_INIT( compgolf )
13
13
{
 
14
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
14
15
        int i;
15
16
 
16
17
        for (i = 0; i < machine.total_colors(); i++)
33
34
        }
34
35
}
35
36
 
36
 
WRITE8_HANDLER( compgolf_video_w )
 
37
WRITE8_MEMBER(compgolf_state::compgolf_video_w)
37
38
{
38
 
        compgolf_state *state = space->machine().driver_data<compgolf_state>();
39
 
        state->m_videoram[offset] = data;
40
 
        state->m_text_tilemap->mark_tile_dirty(offset / 2);
 
39
        m_videoram[offset] = data;
 
40
        m_text_tilemap->mark_tile_dirty(offset / 2);
41
41
}
42
42
 
43
 
WRITE8_HANDLER( compgolf_back_w )
 
43
WRITE8_MEMBER(compgolf_state::compgolf_back_w)
44
44
{
45
 
        compgolf_state *state = space->machine().driver_data<compgolf_state>();
46
 
        state->m_bg_ram[offset] = data;
47
 
        state->m_bg_tilemap->mark_tile_dirty(offset / 2);
 
45
        m_bg_ram[offset] = data;
 
46
        m_bg_tilemap->mark_tile_dirty(offset / 2);
48
47
}
49
48
 
50
49
static TILE_GET_INFO( get_text_info )