[Xfce4-commits] <ristretto:ristretto-0.0> Fix upside-down rendering

Stephan Arts noreply at xfce.org
Sun Oct 23 19:16:01 CEST 2011


Updating branch refs/heads/ristretto-0.0
         to 23bec501b47a85cc805b93ee63c8afe5bbb36d7b (commit)
       from cc9a0da88e61039a1680ba22076e39a0a9d7cca3 (commit)

commit 23bec501b47a85cc805b93ee63c8afe5bbb36d7b
Author: Stephan Arts <stephan at xfce.org>
Date:   Tue May 26 17:15:16 2009 +0200

    Fix upside-down rendering

 src/picture_viewer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/picture_viewer.c b/src/picture_viewer.c
index 22bf027..7a1f7b0 100644
--- a/src/picture_viewer.c
+++ b/src/picture_viewer.c
@@ -1163,10 +1163,10 @@ cb_rstto_picture_viewer_queued_repaint (RsttoPictureViewer *viewer)
                     p_tmp_pixbuf = gdk_pixbuf_new_subpixbuf (p_src_pixbuf,
                                                (gint)(x/scale * thumb_scale * image_scale), 
                                                (gint)(y/scale * thumb_scale * image_scale),
+                                               (gint)((widget->allocation.width / scale) < image_width?
+                                                      (widget->allocation.width / scale)*thumb_scale*image_scale:image_width*thumb_scale*image_scale),
                                                (gint)((widget->allocation.height/ scale) < image_width?
-                                                      (widget->allocation.height/ scale)*thumb_scale*image_scale:image_width*thumb_scale*image_scale),
-                                               (gint)((widget->allocation.width/ scale) < image_height?
-                                                      (widget->allocation.width/ scale)*image_scale*thumb_scale:image_height*thumb_scale*image_scale));
+                                                      (widget->allocation.height/ scale)*image_scale*thumb_scale:image_height*thumb_scale*image_scale));
                     p_tmp_pixbuf2 = gdk_pixbuf_rotate_simple (p_tmp_pixbuf, GDK_PIXBUF_ROTATE_UPSIDEDOWN);
                     g_object_unref (p_tmp_pixbuf);
                     p_tmp_pixbuf = p_tmp_pixbuf2;


More information about the Xfce4-commits mailing list