components/openexr/patches/001-makePreview.patch
changeset 7964 d9801318ed3d
parent 7963 18067c41cdb2
--- a/components/openexr/patches/001-makePreview.patch	Tue May 02 17:26:42 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-*** exrmakepreview/makePreview.cpp	2009-08-31 10:52:16.587024739 -0700
---- exrmakepreview/makePreview.cpp	2009-08-31 10:52:18.578018655 -0700
-***************
-*** 78,84 ****
-      // at 0.0, 0.0, and 5.0 respectively.
-      //
-  
-!     float x = max (0.f, h * m);
-  
-      if (x > 1)
-  	x = 1 + knee (x - 1, 0.184874f);
---- 78,84 ----
-      // at 0.0, 0.0, and 5.0 respectively.
-      //
-  
-!     float x = max (0.f, (float)(h * m));
-  
-      if (x > 1)
-  	x = 1 + knee (x - 1, 0.184874f);
-***************
-*** 132,138 ****
-  	    preview.r = gamma (pixel.r, m);
-  	    preview.g = gamma (pixel.g, m);
-  	    preview.b = gamma (pixel.b, m);
-! 	    preview.a = int (clamp (pixel.a * 255.f, 0.f, 255.f) + .5f);
-  	}
-      }
-  }
---- 132,138 ----
-  	    preview.r = gamma (pixel.r, m);
-  	    preview.g = gamma (pixel.g, m);
-  	    preview.b = gamma (pixel.b, m);
-! 	    preview.a = int (clamp ((double)(pixel.a * 255.f), (double)0.f, (double)255.f) + .5f);
-  	}
-      }
-  }