projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
651eb0f
)
gtk: don't resize window when enabling scaling
author
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 3 Jun 2013 20:36:51 +0000
(15:36 -0500)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 3 Jun 2013 20:36:51 +0000
(15:36 -0500)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/gtk.c
patch
|
blob
|
history
diff --git
a/ui/gtk.c
b/ui/gtk.c
index 52c3f95ffb0bcba6a74bbd0f461c97dda5a066c8..8dc90412c112f60a7e4ed6ffbbb1fc8164aa982f 100644
(file)
--- 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);
}