summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/raiden2.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-06-25 07:56:56 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-06-25 07:56:56 +0000
commitf7ce2a786aaa4ac5e9f82daa4b78ee89ca5ef46c (patch)
tree6f905823e1dff4d781e7f9d95130e42a11d38ee2 /src/mame/drivers/raiden2.c
parent51d2e24a300e89a001709a52da3857c8b2a7b647 (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Sunday, June 21, 2009 6:15 PM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: Re: [patch] Convert most legacy drawgfx apis to new apis On Sun, 21 Jun 2009 18:12:39 -0700, you wrote: Woops, hit send before I attaches the patches. >Hi mamedev, > >The following set of patches migrates much of MAME from the legacy >drawgfx apis to the new drawgfx apis introduced in January. > >0. This removes the machine parameter from some custom drawgfx >routines to align them better with the current idiom. >1. This changes some custom drawgfx routines to follow the (bitmap, >cliprect, gfx, ...) convention of the new drawgfx apis and adjusts a >few apis to use an explicit transparency constant. >2. This patch is entirely mechanical (generated by gfx07.pl) and >converts legacys apis to the new apis. >3. This patch fixes a few cases where the last patch mangled the >code. > >This leaves about twenty uses of the legacy drawgfx apis in MAME. I'll >likely try to modify most of these before moving the legacy apis to >deprecat.h > >~aa
Diffstat (limited to 'src/mame/drivers/raiden2.c')
-rw-r--r--src/mame/drivers/raiden2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/raiden2.c b/src/mame/drivers/raiden2.c
index 18d210cc996..e782fec73c2 100644
--- a/src/mame/drivers/raiden2.c
+++ b/src/mame/drivers/raiden2.c
@@ -240,15 +240,14 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
{
for (ytiles = 0; ytiles < ytlim; ytiles++)
{
- drawgfx(
+ drawgfx_transpen(
bitmap,
+ cliprect,
gfx,
tile_number,
colr,
yflip,xflip,
- sx+xstep*xtiles,sy+ystep*ytiles,
- cliprect,
- TRANSPARENCY_PEN,15);
+ sx+xstep*xtiles,sy+ystep*ytiles,15);
tile_number++;
}