]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk.c
gtk: add support for screen scaling and full screen (v5)
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Feb 2013 13:43:23 +0000 (07:43 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 21 Feb 2013 22:34:48 +0000 (16:34 -0600)
commitc61584833c579cd7bf800499124ce3d0e15bfb37
tree33bed1abc44201b14e8541fb50a22bc0e1966bb4
parent5104a1f65088285ddf870aa641b9061064e8757d
gtk: add support for screen scaling and full screen (v5)

Basic menu items to enter full screen mode and zoom in/out.  Unlike SDL, we
don't allow arbitrary scaling based on window resizing.  The current behavior
with SDL causes a lot of problems for me.

Sometimes I accidentally resize the window a tiny bit while trying to move it
(Ubuntu's 1-pixel window decorations don't help here).  After that, scaling is
now active and if the screen changes size again, badness ensues since the
aspect ratio is skewed.

Allowing zooming by 25% in and out should cover most use cases.  We can add a
more flexible scaling later but for now, I think this is a more friendly
behavior.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1361367806-4599-7-git-send-email-aliguori@us.ibm.com
ui/gtk.c