diff src/pixbuf-renderer.h @ 1037:86148ec8a299

fixed various problems with preserving viewport on image change, options->image.scroll_reset_method should work again (it needs to be added to the preferences dialog)
author nadvornik
date Thu, 04 Sep 2008 21:19:09 +0000
parents f10b680b4baa
children 0ab0deb0cfcc
line wrap: on
line diff
--- a/src/pixbuf-renderer.h	Wed Sep 03 21:54:49 2008 +0000
+++ b/src/pixbuf-renderer.h	Thu Sep 04 21:19:09 2008 +0000
@@ -68,6 +68,9 @@
 	gint x_scroll;		/* scroll offset of image (into width, height to start drawing) */
 	gint y_scroll;
 
+	gdouble norm_center_x;	/* coordinates of viewport center in the image, in range 0.0 - 1.0 */
+	gdouble norm_center_y;  /* these coordinates are used for PR_SCROLL_RESET_NOCHANGE and should be preserved over periods with NULL pixbuf */
+	
 	gdouble subpixel_x_scroll; /* subpixel scroll alignment, used to prevent acumulation of rounding errors */
 	gdouble subpixel_y_scroll;