~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/video/popper.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
WRITE8_HANDLER( popper_flipscreen_w )
88
88
{
89
89
        popper_flipscreen = data;
90
 
        tilemap_set_flip( ALL_TILEMAPS,popper_flipscreen?(TILEMAP_FLIPX|TILEMAP_FLIPY):0 );
 
90
        tilemap_set_flip_all( space->machine,popper_flipscreen?(TILEMAP_FLIPX|TILEMAP_FLIPY):0 );
91
91
 
92
92
        tilemap_clip = *video_screen_get_visible_area(space->machine->primary_screen);
93
93
 
107
107
        if (popper_gfx_bank != data)
108
108
        {
109
109
                popper_gfx_bank = data;
110
 
                tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
 
110
                tilemap_mark_all_tiles_dirty_all(space->machine);
111
111
        }
112
112
}
113
113
 
226
226
                                flipy = !flipy;
227
227
                        }
228
228
 
229
 
                        drawgfx(bitmap,machine->gfx[1],
 
229
                        drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
230
230
                                        popper_spriteram[offs+1],
231
231
                                        (popper_spriteram[offs+2]&0x0f),
232
232
                                        flipx,flipy,
233
 
                                        sx,sy,
234
 
                                        cliprect,TRANSPARENCY_PEN,0);
 
233
                                        sx,sy,0);
235
234
                }
236
235
        }
237
236
}