]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/ImageIO.cpp
Remove some unneeded libs & headers
[lugaru.git] / Source / Utils / ImageIO.cpp
index 706c201bce872b7688e790d871a82e8d0837b12b..689224ea7888a25add17bfe6c56749e48552807b 100644 (file)
@@ -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);