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

« back to all changes in this revision

Viewing changes to src/mame/video/mouser.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
                /* Note: this is _not_ dependant on flipping */
88
88
                color_offs = offs%32 + ((256 + 8*(offs/32) - spriteram[offs%32])%256)/8*32;
89
89
 
90
 
                drawgfx(bitmap,screen->machine->gfx[0],
 
90
                drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[0],
91
91
                                videoram[offs] | (colorram[color_offs]>>5)*256 | ((colorram[color_offs]>>4)&1)*512,
92
92
                                colorram[color_offs]%16,
93
93
                                flip_screen_x_get(screen->machine),flip_screen_y_get(screen->machine),
94
 
                                8*sx,scrolled_y_position,
95
 
                                cliprect,TRANSPARENCY_NONE,0);
 
94
                                8*sx,scrolled_y_position);
96
95
        }
97
96
 
98
97
        /* There seem to be two sets of sprites, each decoded identically */
119
118
                }
120
119
 
121
120
                if ((spriteram[offs+1]&0x10)>>4)
122
 
                        drawgfx(bitmap,screen->machine->gfx[1+((spriteram[offs+1]&0x20)>>5)],
 
121
                        drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[1+((spriteram[offs+1]&0x20)>>5)],
123
122
                                        spriteram[offs]&0x3f,
124
123
                                        spriteram[offs+1]%16,
125
124
                                        flipx,flipy,
126
 
                                        sx,sy,
127
 
                                        cliprect,TRANSPARENCY_PEN,0);
 
125
                                        sx,sy,0);
128
126
        }
129
127
 
130
128
        /* This is the second set of 8 sprites */
149
147
                }
150
148
 
151
149
                if ((spriteram[offs+1]&0x10)>>4)
152
 
                        drawgfx(bitmap,screen->machine->gfx[1+((spriteram[offs+1]&0x20)>>5)],
 
150
                        drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[1+((spriteram[offs+1]&0x20)>>5)],
153
151
                                        spriteram[offs]&0x3f,
154
152
                                        spriteram[offs+1]%16,
155
153
                                        flipx,flipy,
156
 
                                        sx,sy,
157
 
                                        cliprect,TRANSPARENCY_PEN,0);
 
154
                                        sx,sy,0);
158
155
        }
159
156
 
160
157
        return 0;