[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and ful
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen |
Date: |
Mon, 20 Feb 2012 08:41:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 |
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, void *opaque)
> +{
> + GtkDisplayState *s = opaque;
> +
> + s->scale_x *= .75;
> + s->scale_y *= .75;
This should be /= 1.25, because the inverse of 1.25 is _not_ 0.75. :)
Paolo
- Re: [Qemu-devel] [PATCH 1/6] console: allow VCs to be overridden by UI, (continued)
[Qemu-devel] [PATCH 2/6] ui: add basic GTK gui, Anthony Liguori, 2012/02/19
[Qemu-devel] [PATCH 3/6] gtk: add virtual console support, Anthony Liguori, 2012/02/19
[Qemu-devel] [PATCH 4/6] gtk: add support for input grabbing, Anthony Liguori, 2012/02/19
[Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen, Anthony Liguori, 2012/02/19
[Qemu-devel] [PATCH 6/6] gtk: make default UI, Anthony Liguori, 2012/02/19