X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FImageIO.cpp;h=689224ea7888a25add17bfe6c56749e48552807b;hb=6f9609cebe4bcb87a7722b628b02a1975c56148c;hp=124f1b7658cb660ed4dddc4e7fc34c44f7367ec5;hpb=b9a46d8e2b7e7e22c706e7dd3734f31015db4408;p=lugaru.git
diff --git a/Source/Utils/ImageIO.cpp b/Source/Utils/ImageIO.cpp
index 124f1b7..689224e 100644
--- a/Source/Utils/ImageIO.cpp
+++ b/Source/Utils/ImageIO.cpp
@@ -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 .
#include
#include
#include
-#include
+
+#ifndef WIN32
+#include
+#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);