From patchwork Tue Jan 18 16:11:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 79326 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id ABFDEB6F1E for ; Wed, 19 Jan 2011 03:15:13 +1100 (EST) Received: from localhost ([127.0.0.1]:57696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfED9-00037Q-0Z for incoming@patchwork.ozlabs.org; Tue, 18 Jan 2011 11:15:11 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:x-mailer; bh=XrrsBnAtB8e56y8aKyjqRDk6svbAgq4qjAQAF85HrK4=; b=P1X5D3UgjmmO35W3wFQvSP0ctfipsIXvr5KB9TjxSJyOn1jF7FP8AuaE3xLzv24F7B ba3xJ/EcS4LrNirrk3do7ncup0ig9nf5B4Sust1RqrroShQa58Ur5dGgyld4J1LsrXZA qKzdStS0eQttEcJnJguxV3mWJDYDITPU8sQYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; b=Ws2GM8YEDWnPSUCQHaUUxU3eTkynBQNcR9YA/pNB6YUuQDGMI3C3mqTdDM2owR3HMX jm8HktxtOaZwmXwVHFnnHQDbGZWUtR/EmAd8h/eRWJ3ZUXO+j/+bOlPLU6wZvaShNEaG ge0KmUnJLfjjZVb+s2QzOw1MV6utSgjkjv6Sw= Received: by 10.204.52.136 with SMTP id i8mr3614512bkg.74.1295367129104; Tue, 18 Jan 2011 08:12:09 -0800 (PST) Received: from doriath.ww600.siemens.net ([91.213.169.4]) by mx.google.com with ESMTPS id z18sm521014bkf.8.2011.01.18.08.11.34 (version=SSLv3 cipher=RC4-MD5); Tue, 18 Jan 2011 08:11:47 -0800 (PST) From: Dmitry Eremin-Solenikov To: qemu-devel@nongnu.org Date: Tue, 18 Jan 2011 19:11:33 +0300 Message-Id: <1295367093-6011-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.2.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] pxa2xx_lcd: restore updating of display X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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);