[gthumb] calculate scaled image size correctly
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] calculate scaled image size correctly
- Date: Sun, 30 Jun 2013 08:42:14 +0000 (UTC)
commit f6092b8b685e2cdb5e52756d2a57ae8f912e3fd3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Jun 29 16:03:58 2013 +0200
calculate scaled image size correctly
truncate the value instead of rounding it.
gthumb/gth-image-dragger.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index 559e87b..9b6d8eb 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -431,8 +431,8 @@ _gth_image_dragger_update_scaled_image (GthImageDragger *self)
if (zoom >= 1.0)
return;
- new_width = round (zoom * image_width);
- new_height = round (zoom * image_height);
+ new_width = zoom * image_width;
+ new_height = zoom * image_height;
/*self->priv->scaled = _cairo_image_surface_scale_nearest (image, new_width, new_height);*/
self->priv->scaled = _cairo_image_surface_scale_bilinear (image, new_width, new_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]