Code cleanup: Remove another do-nothing wrapper function.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@676 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2006-09-02 22:45:06 +00:00
parent b7b01e70b6
commit e9c9e47bda
3 changed files with 3 additions and 10 deletions

View File

@ -23,7 +23,7 @@ static void wzpng_read_data(png_structp ctx, png_bytep area, png_size_t size)
}
}
iBool pie_PNGLoadMem(char *pngimage, iSprite *s, iColour *pal)
BOOL pie_PNGLoadMem(char *pngimage, iSprite *s, iColour *pal)
{
unsigned int PNG_BYTES_TO_CHECK;
png_structp png_ptr = NULL;
@ -141,9 +141,3 @@ error:
return FALSE;
}
BOOL pie_PNGLoadMemToBuffer(char *pngimage, iSprite *s, iColour *pal)
{
return pie_PNGLoadMem(pngimage, s, pal);
}

View File

@ -181,8 +181,7 @@ extern void SetBSPObjectPos(SDWORD x,SDWORD y,SDWORD z);
extern void SetBSPCameraPos(SDWORD x,SDWORD y,SDWORD z);
// PNG
BOOL pie_PNGLoadMemToBuffer(char *pngimage, iSprite *s, iColour *pal);
iBool pie_PNGLoadMem(char *pngimage, iSprite *s, iColour *pal);
BOOL pie_PNGLoadMem(char *pngimage, iSprite *s, iColour *pal);
void SetBSPObjectRot(SDWORD Yaw, SDWORD Pitch);

View File

@ -202,7 +202,7 @@ int pie_ReloadTexPage(STRING *filename, char *pBuffer)
s.height = _TEX_PAGE[i].tex.height;
s.bmp = _TEX_PAGE[i].tex.bmp;
pie_PNGLoadMemToBuffer(pBuffer, &s, NULL);
pie_PNGLoadMem(pBuffer, &s, NULL);
return i;
}