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

« back to all changes in this revision

Viewing changes to src/mame/video/tp84.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
PALETTE_INIT( tp84 )
45
45
{
 
46
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
46
47
        static const int resistances[4] = { 1000, 470, 220, 100 };
47
48
        double weights[4];
48
49
        int i;
103
104
}
104
105
 
105
106
 
106
 
WRITE8_HANDLER( tp84_spriteram_w )
 
107
WRITE8_MEMBER(tp84_state::tp84_spriteram_w)
107
108
{
108
 
        tp84_state *state = space->machine().driver_data<tp84_state>();
109
109
        /* the game multiplexes the sprites, so update now */
110
 
        space->machine().primary_screen->update_now();
111
 
        state->m_spriteram[offset] = data;
 
110
        machine().primary_screen->update_now();
 
111
        m_spriteram[offset] = data;
112
112
}
113
113
 
114
114
 
115
 
READ8_HANDLER( tp84_scanline_r )
 
115
READ8_MEMBER(tp84_state::tp84_scanline_r)
116
116
{
117
117
        /* reads 1V - 128V */
118
 
        return space->machine().primary_screen->vpos();
 
118
        return machine().primary_screen->vpos();
119
119
}
120
120
 
121
121