Author: post
Date: 2012-07-18 15:39:34 +0200 (Wed, 18 Jul 2012)
New Revision: 4241
Modified:
trunk/src/gtk-helper.c
Log:
Return sRGB profile, if system display profile cannot be read. Thanks to John
Sheu.
Modified: trunk/src/gtk-helper.c
===================================================================
--- trunk/src/gtk-helper.c 2012-07-18 13:35:49 UTC (rev 4240)
+++ trunk/src/gtk-helper.c 2012-07-18 13:39:34 UTC (rev 4241)
@@ -794,7 +794,7 @@
CMProfileRef prof = NULL;
CMGetProfileByAVID(monitor, &prof);
if ( prof==NULL )
- return;
+ return rs_color_space_new_singleton("RSSrgb");
ProfileTransfer transfer = { NULL, 0 };
//The following code does not work on 64bit OSX. Disable if we are
compiling there.
@@ -810,7 +810,7 @@
(void)widget;
HDC hdc = GetDC(NULL);
if (hdc == NULL)
- return;
+ return rs_color_space_new_singleton("RSSrgb");
DWORD len = 0;
GetICMProfile (hdc, &len, NULL);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit