From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59742 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfEB9-0000iX-Lc for qemu-devel@nongnu.org; Tue, 18 Jan 2011 11:13:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfEAM-0000TL-Lw for qemu-devel@nongnu.org; Tue, 18 Jan 2011 11:13:07 -0500 Received: from mail-yx0-f173.google.com ([209.85.213.173]:44412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfEAM-0000T7-JU for qemu-devel@nongnu.org; Tue, 18 Jan 2011 11:12:18 -0500 Received: by yxl31 with SMTP id 31so2996219yxl.4 for ; Tue, 18 Jan 2011 08:12:18 -0800 (PST) From: Dmitry Eremin-Solenikov Date: Tue, 18 Jan 2011 19:11:33 +0300 Message-Id: <1295367093-6011-1-git-send-email-dbaryshkov@gmail.com> Subject: [Qemu-devel] [PATCH] pxa2xx_lcd: restore updating of display List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Recently PXA2xx lcd have stopped to be updated incrementally (picture frozen). This patch fixes that by passing non min/max x/y, but rather (correctly) x/y and w/h. Signed-off-by: Dmitry Eremin-Solenikov --- hw/pxa2xx_lcd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c index 1f2211a..5b2b07e 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/pxa2xx_lcd.c @@ -796,9 +796,9 @@ static void pxa2xx_update_display(void *opaque) if (miny >= 0) { if (s->orientation) - dpy_update(s->ds, miny, 0, maxy, s->xres); + dpy_update(s->ds, miny, 0, maxy - miny, s->xres); else - dpy_update(s->ds, 0, miny, s->xres, maxy); + dpy_update(s->ds, 0, miny, s->xres, maxy - miny); } pxa2xx_lcdc_int_update(s); -- 1.7.2.3