Skip to contentSkip to conversation

gtk: don't resize window when enabling scaling

PATCH Applied Anthony Liguori 1 participant 2 messages Jun 3, 2013 – Jun 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gtk: don't resize window when enabling scaling

---
 ui/gtk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
ui/gtk.c +3 -1
index 52c3f95..8dc9041 100644
@@ -885,9 +885,11 @@ static void gd_menu_zoom_fit(GtkMenuItem *item, void *opaque)
         s->free_scale = TRUE;
     } else {
         s->free_scale = FALSE;
+        s->scale_x = 1.0;
+        s->scale_y = 1.0;
+        gd_update_windowsize(s);
     }
 
-    gd_update_windowsize(s);
     gd_update_full_redraw(s);
 }
 
Signature · 1 line
1.8.0