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

« back to all changes in this revision

Viewing changes to src/mame/video/pooyan.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:
29
29
 
30
30
PALETTE_INIT( pooyan )
31
31
{
 
32
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
32
33
        static const int resistances_rg[3] = { 1000, 470, 220 };
33
34
        static const int resistances_b [2] = { 470, 220 };
34
35
        double rweights[3], gweights[3], bweights[2];
128
129
 *
129
130
 *************************************/
130
131
 
131
 
WRITE8_HANDLER( pooyan_videoram_w )
132
 
{
133
 
        pooyan_state *state = space->machine().driver_data<pooyan_state>();
134
 
        state->m_videoram[offset] = data;
135
 
        state->m_bg_tilemap->mark_tile_dirty(offset);
136
 
}
137
 
 
138
 
 
139
 
WRITE8_HANDLER( pooyan_colorram_w )
140
 
{
141
 
        pooyan_state *state = space->machine().driver_data<pooyan_state>();
142
 
        state->m_colorram[offset] = data;
143
 
        state->m_bg_tilemap->mark_tile_dirty(offset);
144
 
}
145
 
 
146
 
 
147
 
WRITE8_HANDLER( pooyan_flipscreen_w )
148
 
{
149
 
        flip_screen_set(space->machine(), ~data & 0x01);
 
132
WRITE8_MEMBER(pooyan_state::pooyan_videoram_w)
 
133
{
 
134
        m_videoram[offset] = data;
 
135
        m_bg_tilemap->mark_tile_dirty(offset);
 
136
}
 
137
 
 
138
 
 
139
WRITE8_MEMBER(pooyan_state::pooyan_colorram_w)
 
140
{
 
141
        m_colorram[offset] = data;
 
142
        m_bg_tilemap->mark_tile_dirty(offset);
 
143
}
 
144
 
 
145
 
 
146
WRITE8_MEMBER(pooyan_state::pooyan_flipscreen_w)
 
147
{
 
148
        flip_screen_set(~data & 0x01);
150
149
}
151
150
 
152
151