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

« back to all changes in this revision

Viewing changes to src/mame/video/sidepckt.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:
70
70
        tilemap_set_transmask(bg_tilemap,0,0xff,0x00); /* split type 0 is totally transparent in front half */
71
71
        tilemap_set_transmask(bg_tilemap,1,0x01,0xfe); /* split type 1 has pen 0 transparent in front half */
72
72
 
73
 
        tilemap_set_flip(ALL_TILEMAPS,TILEMAP_FLIPX);
 
73
        tilemap_set_flip_all(machine,TILEMAP_FLIPX);
74
74
}
75
75
 
76
76
 
96
96
WRITE8_HANDLER( sidepckt_flipscreen_w )
97
97
{
98
98
        flipscreen = data;
99
 
        tilemap_set_flip(ALL_TILEMAPS,flipscreen ? TILEMAP_FLIPY : TILEMAP_FLIPX);
 
99
        tilemap_set_flip_all(space->machine,flipscreen ? TILEMAP_FLIPY : TILEMAP_FLIPX);
100
100
}
101
101
 
102
102
 
123
123
                flipx = spriteram[offs+1] & 0x08;
124
124
                flipy = spriteram[offs+1] & 0x04;
125
125
 
126
 
                drawgfx(bitmap,machine->gfx[1],
 
126
                drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
127
127
                                code,
128
128
                                color,
129
129
                                flipx,flipy,
130
 
                                sx,sy,
131
 
                                cliprect,TRANSPARENCY_PEN,0);
 
130
                                sx,sy,0);
132
131
                /* wraparound */
133
 
                drawgfx(bitmap,machine->gfx[1],
 
132
                drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
134
133
                                code,
135
134
                                color,
136
135
                                flipx,flipy,
137
 
                                sx-256,sy,
138
 
                                cliprect,TRANSPARENCY_PEN,0);
 
136
                                sx-256,sy,0);
139
137
        }
140
138
}
141
139