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

« back to all changes in this revision

Viewing changes to src/mame/video/pandoras.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:
23
23
 
24
24
PALETTE_INIT( pandoras )
25
25
{
 
26
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
26
27
        static const int resistances_rg[3] = { 1000, 470, 220 };
27
28
        static const int resistances_b [2] = { 470, 220 };
28
29
        double rweights[3], gweights[3], bweights[2];
119
120
 
120
121
***************************************************************************/
121
122
 
122
 
WRITE8_HANDLER( pandoras_vram_w )
123
 
{
124
 
        pandoras_state *state = space->machine().driver_data<pandoras_state>();
125
 
 
126
 
        state->m_layer0->mark_tile_dirty(offset);
127
 
        state->m_videoram[offset] = data;
128
 
}
129
 
 
130
 
WRITE8_HANDLER( pandoras_cram_w )
131
 
{
132
 
        pandoras_state *state = space->machine().driver_data<pandoras_state>();
133
 
 
134
 
        state->m_layer0->mark_tile_dirty(offset);
135
 
        state->m_colorram[offset] = data;
136
 
}
137
 
 
138
 
WRITE8_HANDLER( pandoras_scrolly_w )
139
 
{
140
 
        pandoras_state *state = space->machine().driver_data<pandoras_state>();
141
 
 
142
 
        state->m_layer0->set_scrolly(0, data);
143
 
}
144
 
 
145
 
WRITE8_HANDLER( pandoras_flipscreen_w )
146
 
{
147
 
        pandoras_state *state = space->machine().driver_data<pandoras_state>();
148
 
 
149
 
        state->m_flipscreen = data;
150
 
        space->machine().tilemap().set_flip_all(state->m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
 
123
WRITE8_MEMBER(pandoras_state::pandoras_vram_w)
 
124
{
 
125
 
 
126
        m_layer0->mark_tile_dirty(offset);
 
127
        m_videoram[offset] = data;
 
128
}
 
129
 
 
130
WRITE8_MEMBER(pandoras_state::pandoras_cram_w)
 
131
{
 
132
 
 
133
        m_layer0->mark_tile_dirty(offset);
 
134
        m_colorram[offset] = data;
 
135
}
 
136
 
 
137
WRITE8_MEMBER(pandoras_state::pandoras_scrolly_w)
 
138
{
 
139
 
 
140
        m_layer0->set_scrolly(0, data);
 
141
}
 
142
 
 
143
WRITE8_MEMBER(pandoras_state::pandoras_flipscreen_w)
 
144
{
 
145
 
 
146
        m_flipscreen = data;
 
147
        machine().tilemap().set_flip_all(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
151
148
}
152
149
 
153
150
/***************************************************************************