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

« back to all changes in this revision

Viewing changes to src/mame/video/timeplt.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:
39
39
 
40
40
PALETTE_INIT( timeplt )
41
41
{
 
42
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
42
43
        rgb_t palette[32];
43
44
        int i;
44
45
 
141
142
 *
142
143
 *************************************/
143
144
 
144
 
WRITE8_HANDLER( timeplt_videoram_w )
145
 
{
146
 
        timeplt_state *state = space->machine().driver_data<timeplt_state>();
147
 
        state->m_videoram[offset] = data;
148
 
        state->m_bg_tilemap->mark_tile_dirty(offset);
149
 
}
150
 
 
151
 
 
152
 
WRITE8_HANDLER( timeplt_colorram_w )
153
 
{
154
 
        timeplt_state *state = space->machine().driver_data<timeplt_state>();
155
 
        state->m_colorram[offset] = data;
156
 
        state->m_bg_tilemap->mark_tile_dirty(offset);
157
 
}
158
 
 
159
 
 
160
 
WRITE8_HANDLER( timeplt_flipscreen_w )
161
 
{
162
 
        flip_screen_set(space->machine(), ~data & 1);
163
 
}
164
 
 
165
 
 
166
 
READ8_HANDLER( timeplt_scanline_r )
167
 
{
168
 
        return space->machine().primary_screen->vpos();
 
145
WRITE8_MEMBER(timeplt_state::timeplt_videoram_w)
 
146
{
 
147
        m_videoram[offset] = data;
 
148
        m_bg_tilemap->mark_tile_dirty(offset);
 
149
}
 
150
 
 
151
 
 
152
WRITE8_MEMBER(timeplt_state::timeplt_colorram_w)
 
153
{
 
154
        m_colorram[offset] = data;
 
155
        m_bg_tilemap->mark_tile_dirty(offset);
 
156
}
 
157
 
 
158
 
 
159
WRITE8_MEMBER(timeplt_state::timeplt_flipscreen_w)
 
160
{
 
161
        flip_screen_set(~data & 1);
 
162
}
 
163
 
 
164
 
 
165
READ8_MEMBER(timeplt_state::timeplt_scanline_r)
 
166
{
 
167
        return machine().primary_screen->vpos();
169
168
}
170
169
 
171
170