summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov2011-01-18 17:11:33 +0100
committerAurelien Jarno2011-01-20 12:37:21 +0100
commitb2bf03a90ca3024213e354d3e0a6bc0cc8fc31e8 (patch)
tree393dc56d814d3b6c264c7fa4255067df1558122b
parentpxa2xx: fix vmstate_pxa2xx_i2c (diff)
downloadqemu-b2bf03a90ca3024213e354d3e0a6bc0cc8fc31e8.tar.gz
qemu-b2bf03a90ca3024213e354d3e0a6bc0cc8fc31e8.tar.xz
qemu-b2bf03a90ca3024213e354d3e0a6bc0cc8fc31e8.zip
pxa2xx_lcd: restore updating of display
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 <dbaryshkov@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--hw/pxa2xx_lcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pxa2xx_lcd.c b/hw/pxa2xx_lcd.c
index 1f2211a2f0..5b2b07e02c 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);