Remove unused function pcx_get_dimensions
This commit is contained in:
parent
cf613c84ca
commit
f6410413b2
20
2d/pcx.c
20
2d/pcx.c
|
@ -80,26 +80,6 @@ int PCXHeader_read_n(PCXHeader *ph, int n, PHYSFS_file *fp)
|
|||
return i;
|
||||
}
|
||||
|
||||
int pcx_get_dimensions( char *filename, int *width, int *height)
|
||||
{
|
||||
PHYSFS_file *PCXfile;
|
||||
PCXHeader header;
|
||||
|
||||
PCXfile = PHYSFSX_openReadBuffered(filename);
|
||||
if (!PCXfile) return PCX_ERROR_OPENING;
|
||||
|
||||
if (PCXHeader_read_n(&header, 1, PCXfile) != 1) {
|
||||
PHYSFS_close(PCXfile);
|
||||
return PCX_ERROR_NO_HEADER;
|
||||
}
|
||||
PHYSFS_close(PCXfile);
|
||||
|
||||
*width = header.Xmax - header.Xmin+1;
|
||||
*height = header.Ymax - header.Ymin+1;
|
||||
|
||||
return PCX_ERROR_NONE;
|
||||
}
|
||||
|
||||
int pcx_read_bitmap( char * filename, grs_bitmap * bmp,int bitmap_type ,ubyte * palette )
|
||||
{
|
||||
PCXHeader header;
|
||||
|
|
|
@ -33,8 +33,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
// then bmp->bm_data is allocated and the w,h are filled.
|
||||
// If palette==NULL the palette isn't read in. Returns error code.
|
||||
|
||||
extern int pcx_get_dimensions( char *filename, int *width, int *height);
|
||||
|
||||
extern int pcx_read_bitmap( char * filename, grs_bitmap * bmp, int bitmap_type, ubyte * palette );
|
||||
|
||||
// Writes the bitmap bmp to filename, using palette. Returns error code.
|
||||
|
|
Loading…
Reference in a new issue