diff options
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 |
commit | f7ce2a786aaa4ac5e9f82daa4b78ee89ca5ef46c (patch) | |
tree | 6f905823e1dff4d781e7f9d95130e42a11d38ee2 /src/mame/video/superqix.c | |
parent | 51d2e24a300e89a001709a52da3857c8b2a7b647 (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/video/superqix.c')
-rw-r--r-- | src/mame/video/superqix.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c index b23c43af639..afa0fe19bc0 100644 --- a/src/mame/video/superqix.c +++ b/src/mame/video/superqix.c @@ -186,12 +186,11 @@ static void pbillian_draw_sprites(running_machine *machine, bitmap_t *bitmap, co sy = 240 - sy; } - drawgfx(bitmap,machine->gfx[1], + drawgfx_transpen(bitmap,cliprect, machine->gfx[1], code, color, flip_screen_get(machine), flip_screen_get(machine), - sx, sy, - cliprect, TRANSPARENCY_PEN, 0); + sx, sy, 0); } } @@ -217,12 +216,11 @@ static void superqix_draw_sprites(running_machine *machine, bitmap_t *bitmap,con flipy = !flipy; } - drawgfx(bitmap,machine->gfx[2], + drawgfx_transpen(bitmap,cliprect, machine->gfx[2], code, color, flipx, flipy, - sx, sy, - cliprect, TRANSPARENCY_PEN, 0); + sx, sy, 0); } } |