version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_png_c = | | * static char *rcsid_png_c = |
* "$Id: png.c,v 1.2 2000/12/16 04:34:34 cvs Exp $"; | | * "$Id: png.c,v 1.3 2000/12/24 21:16:46 cvs Exp $"; |
*/ | | */ |
/* | | /* |
Crossfire client, a client program for the crossfire program. | | Crossfire client, a client program for the crossfire program. |
| | |
pixels = (char*)malloc(*width * *height * bpp); | | pixels = (char*)malloc(*width * *height * bpp); |
pixels_byte =*width * *height * bpp; | | pixels_byte =*width * *height * bpp; |
} else if ((*width * *height * bpp) > pixels_byte) { | | } else if ((*width * *height * bpp) > pixels_byte) { |
realloc(pixels, *width * *height * bpp); | | pixels=realloc(pixels, *width * *height * bpp); |
pixels_byte =*width * *height * bpp; | | pixels_byte =*width * *height * bpp; |
} | | } |
| | |