aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-06-03 15:36:51 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2013-06-03 15:36:51 -0500
commit41686a960805ed561158c7e4809f0c9f92f1d8ec (patch)
tree4574391436c73bd4b134b248341d640727cc70e2 /ui
parent651eb0f41b793021f7de672de78892def5819fb9 (diff)
downloadqemu-41686a960805ed561158c7e4809f0c9f92f1d8ec.zip
qemu-41686a960805ed561158c7e4809f0c9f92f1d8ec.tar.gz
qemu-41686a960805ed561158c7e4809f0c9f92f1d8ec.tar.bz2
gtk: don't resize window when enabling scaling
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk.c4
1 files changed, 3 insertions, 1 deletions
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);
}