]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/xwindow-private.h
(no commit message)
[imagemagick] / MagickCore / xwindow-private.h
index b1c8b7d48cfd4f1ad38bac29b27822757dbe8c4c..91a4ae3f898a41de32ba1ed09ff8575b27b26c90 100644 (file)
@@ -603,9 +603,9 @@ static inline double XPixelIntensity(const XColor *pixel)
     green,
     red;
 
-  red=InversesRGBCompandor((double) pixel->red);
-  green=InversesRGBCompandor((double) pixel->green);
-  blue=InversesRGBCompandor((double) pixel->blue);
+  red=DecodesRGBGamma((double) pixel->red);
+  green=DecodesRGBGamma((double) pixel->green);
+  blue=DecodesRGBGamma((double) pixel->blue);
   return(0.298839*red+0.586811*green+0.114350*blue);
 }