| OLD | NEW | 
|---|
| 1 /* vim: set ts=8 sw=8 noexpandtab: */ | 1 /* vim: set ts=8 sw=8 noexpandtab: */ | 
| 2 //  qcms | 2 //  qcms | 
| 3 //  Copyright (C) 2009 Mozilla Foundation | 3 //  Copyright (C) 2009 Mozilla Foundation | 
| 4 //  Copyright (C) 1998-2007 Marti Maria | 4 //  Copyright (C) 1998-2007 Marti Maria | 
| 5 // | 5 // | 
| 6 // Permission is hereby granted, free of charge, to any person obtaining | 6 // Permission is hereby granted, free of charge, to any person obtaining | 
| 7 // a copy of this software and associated documentation files (the "Software"), | 7 // a copy of this software and associated documentation files (the "Software"), | 
| 8 // to deal in the Software without restriction, including without limitation | 8 // to deal in the Software without restriction, including without limitation | 
| 9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, | 9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, | 
| 10 // and/or sell copies of the Software, and to permit persons to whom the Softwar
      e | 10 // and/or sell copies of the Software, and to permit persons to whom the Softwar
      e | 
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1343 invalid_tag_table: | 1343 invalid_tag_table: | 
| 1344         if (index.tags) | 1344         if (index.tags) | 
| 1345                 free(index.tags); | 1345                 free(index.tags); | 
| 1346 invalid_profile: | 1346 invalid_profile: | 
| 1347         qcms_profile_release(profile); | 1347         qcms_profile_release(profile); | 
| 1348         return INVALID_PROFILE; | 1348         return INVALID_PROFILE; | 
| 1349 } | 1349 } | 
| 1350 | 1350 | 
| 1351 qcms_bool qcms_profile_match(qcms_profile *p1, qcms_profile *p2) | 1351 qcms_bool qcms_profile_match(qcms_profile *p1, qcms_profile *p2) | 
| 1352 { | 1352 { | 
| 1353     return memcmp(p1->description, p2->description, sizeof p1->description) == 0
      ; | 1353 »       return memcmp(p1->description, p2->description, sizeof p1->description) 
      == 0; | 
| 1354 } | 1354 } | 
| 1355 | 1355 | 
| 1356 const char* qcms_profile_get_description(qcms_profile *profile) | 1356 const char* qcms_profile_get_description(qcms_profile *profile) | 
| 1357 { | 1357 { | 
| 1358     return profile->description; | 1358 »       return profile->description; | 
| 1359 } | 1359 } | 
| 1360 | 1360 | 
| 1361 qcms_intent qcms_profile_get_rendering_intent(qcms_profile *profile) | 1361 qcms_intent qcms_profile_get_rendering_intent(qcms_profile *profile) | 
| 1362 { | 1362 { | 
| 1363         return profile->rendering_intent; | 1363         return profile->rendering_intent; | 
| 1364 } | 1364 } | 
| 1365 | 1365 | 
| 1366 qcms_color_space qcms_profile_get_color_space(qcms_profile *profile) | 1366 qcms_color_space qcms_profile_get_color_space(qcms_profile *profile) | 
| 1367 { | 1367 { | 
| 1368         return profile->color_space; | 1368         return profile->color_space; | 
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1476 { | 1476 { | 
| 1477         qcms_profile *profile = NULL; | 1477         qcms_profile *profile = NULL; | 
| 1478         FILE *file = _wfopen(path, L"rb"); | 1478         FILE *file = _wfopen(path, L"rb"); | 
| 1479         if (file) { | 1479         if (file) { | 
| 1480                 profile = qcms_profile_from_file(file); | 1480                 profile = qcms_profile_from_file(file); | 
| 1481                 fclose(file); | 1481                 fclose(file); | 
| 1482         } | 1482         } | 
| 1483         return profile; | 1483         return profile; | 
| 1484 } | 1484 } | 
| 1485 #endif | 1485 #endif | 
| OLD | NEW | 
|---|