Fixed PNG support
This commit is contained in:
@@ -105,18 +105,7 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#endif
|
#include <png.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#include <io.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include <winsock.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
#include <dsound.h>
|
|
||||||
#include <dinput.h>
|
|
||||||
#include <direct.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <zlib.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
@@ -126,7 +115,3 @@
|
|||||||
#include <sys/filio.h>
|
#include <sys/filio.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ZDOS
|
|
||||||
#include <dos.h>
|
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -8,7 +8,11 @@
|
|||||||
typedef enum {false, true} bool;
|
typedef enum {false, true} bool;
|
||||||
#endif
|
#endif
|
||||||
//#define __UPSIDE_DOWN__ /*define if pngs are saved upside down*/
|
//#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);
|
void Grab_PNG_Data(void);
|
||||||
int Png_Dump(const char * filename, unsigned short width, unsigned short height, unsigned char * image_data, bool usebgr);
|
int Png_Dump(const char * filename, unsigned short width, unsigned short height, unsigned char * image_data, bool usebgr);
|
||||||
#define ZPNG_GAMMA 1.0
|
#define ZPNG_GAMMA 1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user