summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension')
-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);