Files
rawTherapee/rtgui/iccfromwindows.txt
Hombre 7e33f6520f Various corrections:
Wolfgang added to AUTHORS.txt
    PhenomX4 target added
    profiles version updated
    slightly enhanced Dark theme
    --large-adress-aware included in the example cmake option file
2011-05-02 00:08:38 +02:00

22 lines
466 B
Plaintext

+#elif defined G_OS_WIN32
+ if (config->display_profile_from_gdk)
+ {
+ HDC hdc = GetDC (NULL);
+
+ if (hdc)
+ {
+ gchar *path;
+ gint32 len = 0;
+
+ GetICMProfile (hdc, &len, NULL);
+ path = g_new (gchar, len);
+
+ if (GetICMProfile (hdc, &len, path))
+ profile = cmsOpenProfileFromFile (path, "r");
+
+ g_free (path);
+ ReleaseDC (NULL, hdc);
+ }
+ }
#endif