mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
Removed deprecated core function decodegfx() [Christophe Jaillet]
---------- Forwarded message ---------- From: Christophe Jaillet <christophe.jaillet@wanadoo.fr> Date: Mon, Dec 14, 2009 at 9:56 PM Subject: Removal of a deprecated function To: submit@mamedev.org Hi, a function in "drawgfx.c" is declared in "deprecat.h" This function ("decodegfx(...)") is not used any more in the code, so it could be removed. Hope this help. Best regards, CJ
This commit is contained in:
parent
bc485032d7
commit
685bac3770
@ -66,9 +66,6 @@ int cpu_getiloops(const device_config *device);
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
/* decode a series of tiles from a particular gfx_element */
|
|
||||||
void decodegfx(gfx_element *gfx, UINT32 first, UINT32 count);
|
|
||||||
|
|
||||||
void decodechar(const gfx_element *gfx, UINT32 code, const UINT8 *src);
|
void decodechar(const gfx_element *gfx, UINT32 code, const UINT8 *src);
|
||||||
|
|
||||||
|
|
||||||
|
@ -362,40 +362,6 @@ void decodechar(const gfx_element *gfx, UINT32 code, const UINT8 *src)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*-------------------------------------------------
|
|
||||||
decodegfx - decode a series of tiles from
|
|
||||||
a particular gfx_element
|
|
||||||
-------------------------------------------------*/
|
|
||||||
|
|
||||||
void decodegfx(gfx_element *gfx, UINT32 first, UINT32 count)
|
|
||||||
{
|
|
||||||
int last = first + count - 1;
|
|
||||||
int c;
|
|
||||||
|
|
||||||
assert(gfx != NULL);
|
|
||||||
assert(gfx->srcdata != NULL);
|
|
||||||
assert(first < gfx->total_elements);
|
|
||||||
assert(last < gfx->total_elements);
|
|
||||||
|
|
||||||
/* if this is raw graphics data, just set the pointer and compute pen usage */
|
|
||||||
if (gfx->flags & GFX_ELEMENT_DONT_FREE)
|
|
||||||
{
|
|
||||||
/* if we got a pointer, set it */
|
|
||||||
gfx->gfxdata = (UINT8 *)gfx->srcdata;
|
|
||||||
|
|
||||||
/* compute pen usage for everything */
|
|
||||||
for (c = first; c <= last; c++)
|
|
||||||
calc_penusage(gfx, c);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* otherwise, we get to manually decode */
|
|
||||||
else
|
|
||||||
for (c = first; c <= last; c++)
|
|
||||||
decodechar(gfx, c, gfx->srcdata);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
DRAWGFX IMPLEMENTATIONS
|
DRAWGFX IMPLEMENTATIONS
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user