]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image_png.c
Added 3D sound support to the Win32 backend (DirectSound and MMSYSTEM), i.e. to the...
[xonotic/darkplaces.git] / image_png.c
index 94a2bd819c1a7c9d2077f79403866e5b12cbd6ad..93de913b5f09da2944dc49f28fa47dddb2f2a114 100644 (file)
@@ -212,7 +212,7 @@ void PNG_fReadData(void *png, unsigned char *data, size_t length)
        }
        memcpy(data, my_png.tmpBuf + my_png.tmpi, length);
        my_png.tmpi += (int)length;
-       Com_HexDumpToConsole(data, (int)length);
+       //Com_HexDumpToConsole(data, (int)length);
 }
 
 void PNG_error_fn(void *png, const char *message)
@@ -250,7 +250,11 @@ unsigned char *PNG_LoadImage (const unsigned char *raw, int filesize, int matchw
        // NOTE: this relies on jmp_buf being the first thing in the png structure
        // created by libpng! (this is correct for libpng 1.2.x)
 #ifdef __cplusplus
+#ifdef MACOSX
+       if (setjmp((int *)png))
+#else
        if (setjmp((__jmp_buf_tag *)png))
+#endif
 #else
        if (setjmp(png))
 #endif