]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/ImageIO.cpp
Remove some unneeded libs & headers
[lugaru.git] / Source / Utils / ImageIO.cpp
index 124f1b7658cb660ed4dddc4e7fc34c44f7367ec5..689224ea7888a25add17bfe6c56749e48552807b 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -26,7 +26,10 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include <jpeglib.h>
 #include <png.h>
 #include <stdio.h>
-#include <zlib.h>
+
+#ifndef WIN32
+#include <unistd.h>
+#endif
 
 /* These two are needed for screenshot */
 extern int kContextWidth;
@@ -122,7 +125,7 @@ static bool load_jpg(const char* file_name, ImageRec& tex)
     (void)jpeg_read_header(&cinfo, TRUE);
 
     cinfo.out_color_space = JCS_RGB;
-    cinfo.quantize_colors = 0;
+    cinfo.quantize_colors = FALSE;
     (void)jpeg_calc_output_dimensions(&cinfo);
     (void)jpeg_start_decompress(&cinfo);