Home | History | Annotate | Download | only in mac

Lines Matching full:error

66         int error = CMSetDeviceProfile(cmDisplayDeviceClass, (CMDeviceID)kCGDirectMainDisplay, &scope, cmDefaultProfileID, &sInitialProfileLocation);
67 if (error)
68 fprintf(stderr, "Failed to restore initial color profile for main display! Open System Preferences > Displays > Color and manually re-select the profile. (Error: %i)", error);
76 int error;
79 error = CMGetProfileByAVID((CMDisplayIDType)kCGDirectMainDisplay, &profile);
80 if (!error) {
82 error = NCMGetProfileLocation(profile, &sInitialProfileLocation, &size);
85 if (error) {
86 fprintf(stderr, "Failed to retrieve current color profile for main display, thus it won't be changed. Many pixel tests may fail as a result. (Error: %i)", error);
94 error = CMSetDeviceProfile(cmDisplayDeviceClass, (CMDeviceID)kCGDirectMainDisplay, &scope, cmDefaultProfileID, &location);
95 if (error) {
96 fprintf(stderr, "Failed to set color profile for main display! Many pixel tests may fail as a result. (Error: %i)", error);