Skip to contentSkip to conversation

pxa2xx_lcd: restore updating of display

PATCH Applied Dmitry Eremin-Solenikov 2 participants 2 messages Jan 18, 2011 – Jan 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/pxa2xx_lcd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
hw/pxa2xx_lcd.c +2 -2
index 1f2211a..5b2b07e 100644
@@ -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);
 
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 28 lines · Dmitry Eremin-Solenikov

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.

---
 hw/pxa2xx_lcd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
hw/pxa2xx_lcd.c +2 -2
index 1f2211a..5b2b07e 100644
@@ -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);
 
Signature · 1 line
1.7.2.3

Thanks, applied.

Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net