From 4433f070f053a0b53926181906b3095f0842e26f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 10 Apr 2009 15:59:55 +0000 Subject: Make dmnsn_whitepoint const. --- libdimension/color.c | 6 +++--- libdimension/dimension/color.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libdimension') 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 /* 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); -- cgit v1.2.3