changeset 1631:368b31e37674

preserve zoom value on fullscreen startup
author nadvornik
date Sat, 06 Jun 2009 19:39:46 +0000
parents 0204d7c830fb
children 1f3bf4a631df
files src/pixbuf-renderer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pixbuf-renderer.c	Sat Jun 06 17:28:16 2009 +0000
+++ b/src/pixbuf-renderer.c	Sat Jun 06 19:39:46 2009 +0000
@@ -3947,6 +3947,8 @@
 		pr->image_width = 0;
 		pr->image_height = 0;
 		pr->scale = 1.0;
+		pr->zoom = zoom; /* don't throw away the zoom value, it is set by pixbuf_renderer_move, among others,
+				    and used for pixbuf_renderer_zoom_get */
 
 		box = GTK_WIDGET(pr);