increased maximum property size, added debug output.
2005-06-24 Sven Neumann <sven@gimp.org> * modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile): increased maximum property size, added debug output.
This commit is contained in:

committed by
Sven Neumann

parent
eeebd95e41
commit
fe0718ef58
@ -1,3 +1,8 @@
|
||||
2005-06-24 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile):
|
||||
increased maximum property size, added debug output.
|
||||
|
||||
2005-06-24 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* modules/cdisplay_lcms.c: implement the configure method and tell
|
||||
|
@ -376,13 +376,21 @@ cdisplay_lcms_get_display_profile (CdisplayLcms *lcms,
|
||||
if (gdk_property_get (gdk_screen_get_root_window (screen),
|
||||
gdk_atom_intern ("_ICC_PROFILE", FALSE),
|
||||
GDK_NONE,
|
||||
0, 256 * 1024, FALSE,
|
||||
0, 64 * 1024 * 1024, FALSE,
|
||||
&type, &format, &nitems, &data) && nitems > 0)
|
||||
{
|
||||
cmsHPROFILE *profile = cmsOpenProfileFromMem (data, nitems);
|
||||
cmsHPROFILE profile = cmsOpenProfileFromMem (data, nitems);
|
||||
|
||||
g_free (data);
|
||||
|
||||
if (profile)
|
||||
{
|
||||
const gchar *name = cmsTakeProductName (profile);
|
||||
|
||||
g_printerr ("obtained ICC profile from X server: %s\n",
|
||||
name ? name : "<untitled>");
|
||||
}
|
||||
|
||||
return profile;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user