Updating branch refs/heads/ristretto-0.0 to 10e6f204a2c38fcd091ca023e10078810719adf0 (commit) from 1f40e6b21f7fcad72dd19442570ccdf12cc8a6a0 (commit)
commit 10e6f204a2c38fcd091ca023e10078810719adf0 Author: Stephan Arts <stephan@thor.(none)> Date: Sat May 16 10:55:18 2009 +0200 When the image is rotated upside-down, use the horizontal slider for horizontal scrolling in stead of vertical scrolling. And use the vertical slider for vertical scrolling instead of horizontal scrolling ChangeLog | 6 ++++++ src/picture_viewer.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bab5a96..b41206d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-05-16 Stephan Arts <step...@xfce.org> + * src/picture_viewer.c: When an image is rotated upside down, make sure + the horizontal slider works horizontally and the vertical slider works + vertically. These were switched :-p + +2009-05-16 Stephan Arts <step...@xfce.org> + * src/image.c src/image.h src/main_window.c diff --git a/src/picture_viewer.c b/src/picture_viewer.c index c891798..1f9f50b 100644 --- a/src/picture_viewer.c +++ b/src/picture_viewer.c @@ -1111,9 +1111,9 @@ cb_rstto_picture_viewer_queued_repaint (RsttoPictureViewer *viewer) p_tmp_pixbuf = p_tmp_pixbuf2; break; case RSTTO_IMAGE_ORIENT_180: - x = (viewer->vadjustment->upper - (viewer->vadjustment->value + viewer->vadjustment->page_size)) * image_scale; + x = (viewer->hadjustment->upper - (viewer->hadjustment->value + viewer->hadjustment->page_size)) * image_scale; if (x < 0) x = 0; - y = (viewer->hadjustment->upper - (viewer->hadjustment->value + viewer->hadjustment->page_size)) * image_scale; + y = (viewer->vadjustment->upper - (viewer->vadjustment->value + viewer->vadjustment->page_size)) * image_scale; if (y < 0) y = 0; //y = viewer->hadjustment->value * image_scale; p_tmp_pixbuf = gdk_pixbuf_new_subpixbuf (p_src_pixbuf, _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits