зеркало из https://github.com/mozilla/gecko-dev.git
Bug 709732 - double color correction with X Color Management
This commit is contained in:
Родитель
e3460bb262
Коммит
78a0b90ff8
|
@ -500,16 +500,10 @@ gfxPlatformGtk::GetPlatformCMSOutputProfile()
|
||||||
if (iccAtom) {
|
if (iccAtom) {
|
||||||
// read once to get size, once for the data
|
// read once to get size, once for the data
|
||||||
if (Success == XGetWindowProperty(dpy, root, iccAtom,
|
if (Success == XGetWindowProperty(dpy, root, iccAtom,
|
||||||
0, 0 /* length */,
|
0, INT_MAX /* length */,
|
||||||
False, AnyPropertyType,
|
False, AnyPropertyType,
|
||||||
&retAtom, &retFormat, &retLength,
|
&retAtom, &retFormat, &retLength,
|
||||||
&retAfter, &retProperty)) {
|
&retAfter, &retProperty)) {
|
||||||
XGetWindowProperty(dpy, root, iccAtom,
|
|
||||||
0, retLength,
|
|
||||||
False, AnyPropertyType,
|
|
||||||
&retAtom, &retFormat, &retLength,
|
|
||||||
&retAfter, &retProperty);
|
|
||||||
|
|
||||||
qcms_profile* profile = NULL;
|
qcms_profile* profile = NULL;
|
||||||
|
|
||||||
if (retLength > 0)
|
if (retLength > 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче