Remove unused function pcx_get_dimensions

This commit is contained in:
Kp 2013-03-10 22:49:57 +00:00
parent cf613c84ca
commit f6410413b2
2 changed files with 0 additions and 22 deletions

View file

@ -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;

View file

@ -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.