diff mbox

gtk: don't resize window when enabling scaling

Message ID 1370291928-29427-1-git-send-email-aliguori@us.ibm.com
State New
Headers show

Commit Message

Anthony Liguori June 3, 2013, 8:38 p.m. UTC
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 ui/gtk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Anthony Liguori June 10, 2013, 9:48 p.m. UTC | #1
Applied.  Thanks.

Regards,

Anthony Liguori
diff mbox

Patch

diff --git a/ui/gtk.c b/ui/gtk.c
index 52c3f95..8dc9041 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -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);
 }