Commit b3783b6e authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

always use CAIRO_FILTER_FAST for painting the surface

the high quality scaling is not perfomed by cairo
parent d353f38e
......@@ -281,7 +281,7 @@ gth_image_dragger_draw (GthImageViewerTool *self,
viewer->image_area.x,
viewer->image_area.y,
&viewer->visible_area,
gth_image_viewer_get_zoom_quality_filter (viewer));
CAIRO_FILTER_FAST);
gth_image_viewer_apply_painters (viewer, cr);
}
......@@ -506,7 +506,7 @@ _gth_image_dragger_update_scaled_image (GthImageDragger *self)
return;
}
if (gth_image_viewer_get_zoom_quality (self->priv->viewer) == GTH_ZOOM_QUALITY_LOW) {
if (gth_image_viewer_get_zoom_quality_filter (self->priv->viewer) == CAIRO_FILTER_FAST) {
gtk_widget_queue_draw (GTK_WIDGET (self->priv->viewer));
return;
}
......
......@@ -2095,7 +2095,7 @@ gth_image_viewer_get_zoom_quality_filter (GthImageViewer *viewer)
else
filter = CAIRO_FILTER_BEST;
if (gth_image_viewer_get_zoom (viewer) == 1.0)
if (gth_image_viewer_get_zoom (viewer) >= 1.0)
filter = CAIRO_FILTER_FAST;
return filter;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment