From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzNsI-0000Lw-Th for qemu-devel@nongnu.org; Mon, 20 Feb 2012 02:41:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzNsC-0002NT-QJ for qemu-devel@nongnu.org; Mon, 20 Feb 2012 02:41:30 -0500 Received: from mail-ee0-f45.google.com ([74.125.83.45]:63552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzNsC-0002N5-Ib for qemu-devel@nongnu.org; Mon, 20 Feb 2012 02:41:24 -0500 Received: by mail-ee0-f45.google.com with SMTP id d17so2350373eek.4 for ; Sun, 19 Feb 2012 23:41:24 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4F41F922.9060709@redhat.com> Date: Mon, 20 Feb 2012 08:41:22 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1329695104-15174-1-git-send-email-aliguori@us.ibm.com> <1329695104-15174-6-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1329695104-15174-6-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/6] gtk: add support for screen scaling and full screen List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Alex Graf 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