]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/imagepng/plugin.cpp
Remove 156 files
[xonotic/netradiant.git] / plugins / imagepng / plugin.cpp
index e46b70651d3b0515be7ba1ca91aaa1dc397874fd..36a4fd052a1ff0c3d8ab39ce986161063d9261fb 100644 (file)
@@ -19,8 +19,6 @@
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "plugin.h"
-
 #include "debugging/debugging.h"
 
 #include "ifilesystem.h"
@@ -39,7 +37,7 @@ void user_warning_fn( png_structp png_ptr, png_const_charp warning_msg ){
 
 void user_error_fn( png_structp png_ptr, png_const_charp error_msg ){
        globalErrorStream() << "libpng error: " << error_msg << "\n";
-       longjmp( png_jmpbuf( png_ptr ), 0 );
+       longjmp( png_jmpbuf(png_ptr), 0 );
 }
 
 void user_read_data( png_structp png_ptr, png_bytep data, png_uint_32 length ){
@@ -84,7 +82,7 @@ Image* LoadPNGBuff( unsigned char* fbuffer ){
        // configure the read function
        png_set_read_fn( png_ptr, ( png_voidp ) & p_fbuffer, ( png_rw_ptr ) & user_read_data );
 
-       if ( setjmp( png_jmpbuf( png_ptr ) ) ) {
+       if ( setjmp( png_jmpbuf(png_ptr) ) ) {
                png_destroy_read_struct( &png_ptr, &info_ptr,
                                                                 &end_info );
                return 0;