summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-04-10 15:59:55 +0000
committerTavian Barnes <tavianator@gmail.com>2009-04-10 15:59:55 +0000
commit4433f070f053a0b53926181906b3095f0842e26f (patch)
tree44f4c73d6a79dd5bf02fb155635d8f0de7c2cfcc
parent725565212bd45e557b7ba2f313f956428b287c14 (diff)
downloaddimension-4433f070f053a0b53926181906b3095f0842e26f.tar.xz
Make dmnsn_whitepoint const.
-rw-r--r--libdimension/color.c6
-rw-r--r--libdimension/dimension/color.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/color.c b/libdimension/color.c
index 6c14ce6..d3709cc 100644
--- a/libdimension/color.c
+++ b/libdimension/color.c
@@ -22,9 +22,9 @@
#include <math.h> /* For pow() */
/* sRGB white point (D50) */
-dmnsn_CIE_XYZ dmnsn_whitepoint = { .X = 0.9504060171449392,
- .Y = 0.9999085943425312,
- .Z = 1.089062231497274 };
+const dmnsn_CIE_XYZ dmnsn_whitepoint = { .X = 0.9504060171449392,
+ .Y = 0.9999085943425312,
+ .Z = 1.089062231497274 };
dmnsn_color
dmnsn_color_from_XYZ(dmnsn_CIE_XYZ XYZ)
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h
index 5d00b7b..5567628 100644
--- a/libdimension/dimension/color.h
+++ b/libdimension/dimension/color.h
@@ -65,7 +65,7 @@ typedef struct {
} dmnsn_sRGB;
/* Standard whitepoint, determined by the conversion of sRGB white to XYZ */
-extern dmnsn_CIE_XYZ dmnsn_whitepoint;
+extern const dmnsn_CIE_XYZ dmnsn_whitepoint;
dmnsn_color dmnsn_color_from_XYZ(dmnsn_CIE_XYZ XYZ);
dmnsn_color dmnsn_color_from_xyY(dmnsn_CIE_xyY xyY);