diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2011-07-09 09:18:40 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2011-07-09 09:18:40 +0000 |
| commit | 2994e0b96e7d5d6d198b3d8139e4134f9d454229 (patch) | |
| tree | 9964831887eba83c6554ffc9f9f364a26bf19ed1 /src/svg/svg-color.cpp | |
| parent | String fixes in webslicer (diff) | |
| download | inkscape-2994e0b96e7d5d6d198b3d8139e4134f9d454229.tar.gz inkscape-2994e0b96e7d5d6d198b3d8139e4134f9d454229.zip | |
Next step in refactoring color management. More to come.
(bzr r10429)
Diffstat (limited to 'src/svg/svg-color.cpp')
| -rw-r--r-- | src/svg/svg-color.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp index e50cb2928..3605bde55 100644 --- a/src/svg/svg-color.cpp +++ b/src/svg/svg-color.cpp @@ -43,7 +43,9 @@ #include "document.h" #include "inkscape.h" #include "profile-manager.h" +#include "color-profile-cms-fns.h" #endif // ENABLE_LCMS +#include "color-profile-fns.h" using std::sprintf; @@ -479,10 +481,12 @@ g_message("profile name: %s", icc->colorProfile.c_str()); gchar const** names = 0; gchar const** tips = 0; guint const* scales = 0; - getThings( prof->getColorSpace(), names, tips, scales ); + getThings( asICColorSpaceSig(prof->getColorSpace()), names, tips, scales ); - guint count = _cmsChannelsOf( prof->getColorSpace() ); - if (count>4) count=4; //do we need it? Should we allow an arbitrary number of color values? Or should we limit to a maximum? (max==4?) + guint count = _cmsChannelsOf( asICColorSpaceSig(prof->getColorSpace()) ); + if (count > 4) { + count = 4; //do we need it? Should we allow an arbitrary number of color values? Or should we limit to a maximum? (max==4?) + } for (guint i=0;i<count; i++){ color_in[i] = (guchar) ((((gdouble)icc->colors[i])*256.0) * (gdouble)scales[i]); g_message("input[%d]: %d",i, color_in[i]); |
