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

« back to all changes in this revision

Viewing changes to src/mame/video/munchmo.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:
4
4
 
5
5
PALETTE_INIT( mnchmobl )
6
6
{
 
7
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
7
8
        int i;
8
9
 
9
10
        for (i = 0; i < machine.total_colors(); i++)
29
30
        }
30
31
}
31
32
 
32
 
WRITE8_HANDLER( mnchmobl_palette_bank_w )
 
33
WRITE8_MEMBER(munchmo_state::mnchmobl_palette_bank_w)
33
34
{
34
 
        munchmo_state *state = space->machine().driver_data<munchmo_state>();
35
 
        state->m_palette_bank = data & 0x3;
 
35
        m_palette_bank = data & 0x3;
36
36
}
37
37
 
38
 
WRITE8_HANDLER( mnchmobl_flipscreen_w )
 
38
WRITE8_MEMBER(munchmo_state::mnchmobl_flipscreen_w)
39
39
{
40
 
        munchmo_state *state = space->machine().driver_data<munchmo_state>();
41
 
        state->m_flipscreen = data;
 
40
        m_flipscreen = data;
42
41
}
43
42
 
44
43
 
83
82
    the tiles in ROM B2.2B
84
83
*/
85
84
        munchmo_state *state = machine.driver_data<munchmo_state>();
86
 
        UINT8 *rom = machine.region("gfx2")->base();
 
85
        UINT8 *rom = state->memregion("gfx2")->base();
87
86
        const gfx_element *gfx = machine.gfx[1];
88
87
        int offs;
89
88