Bug 767062 - Lags when zooming or dragging zoomed image (cmsFLAGS_NOOPTIMIZE)
Use cmsFLAGS_NOOPTIMIZE only for actual image buffer or single color transforms, but not for previews or the image display. Makes things a lot more responsive again.
This commit is contained in:
@ -771,9 +771,13 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
GimpColorTransformFlags flags = 0;
|
||||
|
||||
if (config->simulation_use_black_point_compensation)
|
||||
{
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||
}
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||
|
||||
#if 0
|
||||
/* FIXME add this to GimpColorConfig */
|
||||
if (config->simulation_nooptimize)
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_NOOPTIMIZE;
|
||||
#endif
|
||||
|
||||
if (config->simulation_gamut_check)
|
||||
{
|
||||
@ -806,9 +810,13 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
GimpColorTransformFlags flags = 0;
|
||||
|
||||
if (config->display_use_black_point_compensation)
|
||||
{
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||
}
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||
|
||||
#if 0
|
||||
/* FIXME add this to GimpColorConfig */
|
||||
if (config->display_nooptimize)
|
||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_NOOPTIMIZE;
|
||||
#endif
|
||||
|
||||
cache->transform =
|
||||
gimp_color_transform_new (cache->src_profile,
|
||||
|
Reference in New Issue
Block a user