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

« back to all changes in this revision

Viewing changes to src/mame/video/marineb.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:
202
202
                        sx++;
203
203
                }
204
204
 
205
 
                drawgfx(bitmap,screen->machine->gfx[gfx],
 
205
                drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[gfx],
206
206
                                code,
207
207
                                col,
208
208
                                flipx,flipy,
209
 
                                sx,sy,
210
 
                                cliprect,TRANSPARENCY_PEN,0);
 
209
                                sx,sy,0);
211
210
        }
212
211
        return 0;
213
212
}
248
247
                        sx++;
249
248
                }
250
249
 
251
 
                drawgfx(bitmap,screen->machine->gfx[1],
 
250
                drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[1],
252
251
                                code >> 2,
253
252
                                col,
254
253
                                flipx,flipy,
255
 
                                sx,sy,
256
 
                                cliprect,TRANSPARENCY_PEN,0);
 
254
                                sx,sy,0);
257
255
        }
258
256
 
259
257
        /* draw the big sprite */
278
276
 
279
277
        code >>= 4;
280
278
 
281
 
        drawgfx(bitmap,screen->machine->gfx[2],
 
279
        drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[2],
282
280
                        code,
283
281
                        col,
284
282
                        flipx,flipy,
285
 
                        sx,sy,
286
 
                        cliprect,TRANSPARENCY_PEN,0);
 
283
                        sx,sy,0);
287
284
 
288
285
        /* draw again for wrap around */
289
286
 
290
 
        drawgfx(bitmap,screen->machine->gfx[2],
 
287
        drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[2],
291
288
                        code,
292
289
                        col,
293
290
                        flipx,flipy,
294
 
                        sx-256,sy,
295
 
                        cliprect,TRANSPARENCY_PEN,0);
 
291
                        sx-256,sy,0);
296
292
        return 0;
297
293
}
298
294
 
350
346
                        sx--;
351
347
                }
352
348
 
353
 
                drawgfx(bitmap,screen->machine->gfx[gfx],
 
349
                drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[gfx],
354
350
                                code,
355
351
                                col,
356
352
                                flipx,flipy,
357
 
                                sx,sy,
358
 
                                cliprect,TRANSPARENCY_PEN,0);
 
353
                                sx,sy,0);
359
354
        }
360
355
        return 0;
361
356
}
398
393
                        flipx = !flipx;
399
394
                }
400
395
 
401
 
                drawgfx(bitmap,screen->machine->gfx[1],
 
396
                drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[1],
402
397
                                code >> 2,
403
398
                                col,
404
399
                                flipx,flipy,
405
 
                                sx,sy,
406
 
                                cliprect,TRANSPARENCY_PEN,0);
 
400
                                sx,sy,0);
407
401
        }
408
402
        return 0;
409
403
}
461
455
                        sx--;
462
456
                }
463
457
 
464
 
                drawgfx(bitmap,screen->machine->gfx[gfx],
 
458
                drawgfx_transpen(bitmap,cliprect,screen->machine->gfx[gfx],
465
459
                                code,
466
460
                                col,
467
461
                                flipx,flipy,
468
 
                                sx,sy,
469
 
                                cliprect,TRANSPARENCY_PEN,0);
 
462
                                sx,sy,0);
470
463
        }
471
464
        return 0;
472
465
}