[gthumb] always use CAIRO_FILTER_FAST for painting the surface
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] always use CAIRO_FILTER_FAST for painting the surface
- Date: Mon, 8 Dec 2014 23:19:23 +0000 (UTC)
commit b3783b6e8f200e409154d1d5e4b8c276bfe16946
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Dec 8 19:48:58 2014 +0100
always use CAIRO_FILTER_FAST for painting the surface
the high quality scaling is not perfomed by cairo
gthumb/gth-image-dragger.c | 4 ++--
gthumb/gth-image-viewer.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index 58273c3..304d4dd 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -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;
}
diff --git a/gthumb/gth-image-viewer.c b/gthumb/gth-image-viewer.c
index a72de02..8c5ebc5 100644
--- a/gthumb/gth-image-viewer.c
+++ b/gthumb/gth-image-viewer.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]