Keeping consistency between RS_Save_PNG and RS_Load_PNG
This commit is contained in:
@@ -5,8 +5,6 @@
|
|||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include "RageSurface.h"
|
#include "RageSurface.h"
|
||||||
|
|
||||||
#include <png.h>
|
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include "../extern/libpng/include/png.h"
|
#include "../extern/libpng/include/png.h"
|
||||||
#pragma comment(lib, "libpng.lib")
|
#pragma comment(lib, "libpng.lib")
|
||||||
|
|||||||
@@ -6,15 +6,13 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
|
||||||
#if defined(WINDOWS)
|
|
||||||
#include "png.h"
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# pragma comment(lib, "libpng.lib")
|
#include "../extern/libpng/include/png.h"
|
||||||
|
#pragma comment(lib, "libpng.lib")
|
||||||
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
#pragma warning(disable: 4611) /* interaction between '_setjmp' and C++ object destruction is non-portable */
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#include <../extern/libpng/include/png.h>
|
#include <png.h>
|
||||||
#endif
|
#endif // _MSC_VER
|
||||||
|
|
||||||
static void SafePngError( png_struct *pPng, const RString &sStr )
|
static void SafePngError( png_struct *pPng, const RString &sStr )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user