if no b/a area enabled some speed up when opening images

This commit is contained in:
askvortsov
2010-09-09 16:17:56 -07:00
commit 459a8e4b0e
597 changed files with 121217 additions and 0 deletions

21
rtgui/iccfromwindows.txt Normal file
View File

@@ -0,0 +1,21 @@
+#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