From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzTYx-0004AT-Ni for qemu-devel@nongnu.org; Mon, 20 Feb 2012 08:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzTYt-0000Mr-KS for qemu-devel@nongnu.org; Mon, 20 Feb 2012 08:45:55 -0500 Received: from mail-tul01m020-f173.google.com ([209.85.214.173]:49375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzTYt-0000Le-HC for qemu-devel@nongnu.org; Mon, 20 Feb 2012 08:45:51 -0500 Received: by mail-tul01m020-f173.google.com with SMTP id up16so8148169obb.4 for ; Mon, 20 Feb 2012 05:45:51 -0800 (PST) Message-ID: <4F424E8C.9020703@codemonkey.ws> Date: Mon, 20 Feb 2012 07:45:48 -0600 From: Anthony Liguori 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> <4F41F922.9060709@redhat.com> In-Reply-To: <4F41F922.9060709@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Paolo Bonzini Cc: qemu-devel@nongnu.org, Alex Graf 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_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. :) Indeed, thanks :-) Regards, Anthony Liguori > > Paolo >