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

« back to all changes in this revision

Viewing changes to src/mame/video/portrait.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:
9
9
#include "includes/portrait.h"
10
10
 
11
11
 
12
 
WRITE8_HANDLER( portrait_bgvideo_write )
 
12
WRITE8_MEMBER(portrait_state::portrait_bgvideo_write)
13
13
{
14
 
        portrait_state *state = space->machine().driver_data<portrait_state>();
15
 
        state->m_background->mark_tile_dirty(offset/2);
16
 
        state->m_bgvideoram[offset] = data;
 
14
        m_background->mark_tile_dirty(offset/2);
 
15
        m_bgvideoram[offset] = data;
17
16
}
18
17
 
19
 
WRITE8_HANDLER( portrait_fgvideo_write )
 
18
WRITE8_MEMBER(portrait_state::portrait_fgvideo_write)
20
19
{
21
 
        portrait_state *state = space->machine().driver_data<portrait_state>();
22
 
        state->m_foreground->mark_tile_dirty(offset/2);
23
 
        state->m_fgvideoram[offset] = data;
 
20
        m_foreground->mark_tile_dirty(offset/2);
 
21
        m_fgvideoram[offset] = data;
24
22
}
25
23
 
26
24
INLINE void get_tile_info( running_machine &machine, tile_data &tileinfo, int tile_index, const UINT8 *source )
79
77
 
80
78
PALETTE_INIT( portrait )
81
79
{
 
80
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
82
81
        int i;
83
 
        UINT8* lookup = machine.region("tileattr")->base();
 
82
        UINT8* lookup = machine.root_device().memregion("tileattr")->base();
84
83
 
85
84
        /* allocate the colortable */
86
85
        machine.colortable = colortable_alloc(machine, 0x40);