Fixed PNG support

This commit is contained in:
pagefault
2001-09-28 19:44:12 +00:00
parent 7858ee94aa
commit ef146dfbd1
2 changed files with 6 additions and 17 deletions

View File

@@ -8,7 +8,11 @@
typedef enum {false, true} bool;
#endif
//#define __UPSIDE_DOWN__ /*define if pngs are saved upside down*/
#include "png.h"
#ifdef __LINUX__
#include "../gblhdr.h"
#else
#include <png.h>
#endif
void Grab_PNG_Data(void);
int Png_Dump(const char * filename, unsigned short width, unsigned short height, unsigned char * image_data, bool usebgr);
#define ZPNG_GAMMA 1.0