Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen

2012-02-25 Thread Stefan Weil
Am 20.02.2012 00:45, schrieb Anthony Liguori: 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

Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen

2012-02-20 Thread Anthony Liguori
On 02/20/2012 01:41 AM, Paolo Bonzini wrote: On 02/20/2012 12:45 AM, Anthony Liguori wrote: +static void gd_menu_zoom_in(GtkMenuItem *item, void *opaque) +{ +GtkDisplayState *s = opaque; + +s->scale_x *= 1.25; +s->scale_y *= 1.25; + +gd_resize(s->ds); +} + +static void gd_menu_zo

Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen

2012-02-19 Thread Paolo Bonzini
On 02/20/2012 12:45 AM, Anthony Liguori wrote: > +static void gd_menu_zoom_in(GtkMenuItem *item, void *opaque) > +{ > +GtkDisplayState *s = opaque; > + > +s->scale_x *= 1.25; > +s->scale_y *= 1.25; > + > +gd_resize(s->ds); > +} > + > +static void gd_menu_zoom_out(GtkMenuItem *item,

[Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen

2012-02-19 Thread Anthony Liguori
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