Bug 709732 - double color correction with X Color Management

This commit is contained in:
ku.b@gmx.de 2012-07-18 21:09:13 -04:00
parent e3460bb262
commit 78a0b90ff8

View File

@ -500,16 +500,10 @@ gfxPlatformGtk::GetPlatformCMSOutputProfile()
if (iccAtom) {
// read once to get size, once for the data
if (Success == XGetWindowProperty(dpy, root, iccAtom,
0, 0 /* length */,
0, INT_MAX /* length */,
False, AnyPropertyType,
&retAtom, &retFormat, &retLength,
&retAfter, &retProperty)) {
XGetWindowProperty(dpy, root, iccAtom,
0, retLength,
False, AnyPropertyType,
&retAtom, &retFormat, &retLength,
&retAfter, &retProperty);
qcms_profile* profile = NULL;
if (retLength > 0)