From 9312805d33e8b106bae356d13a8071fb37d75554 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Fri, 17 Jun 2011 13:04:36 +0300 Subject: pxa2xx_lcd: add proper rotation support Until now, pxa2xx_lcd only supported 90deg rotation, but some machines (for example Zipit Z2) needs 270deg rotation. Signed-off-by: Vasily Khoruzhick Signed-off-by: Andrzej Zaborowski --- hw/framebuffer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw/framebuffer.c') diff --git a/hw/framebuffer.c b/hw/framebuffer.c index 24cdf25d0b..56cf16e27a 100644 --- a/hw/framebuffer.c +++ b/hw/framebuffer.c @@ -78,6 +78,9 @@ void framebuffer_update_display( dest = ds_get_data(ds); if (dest_col_pitch < 0) dest -= dest_col_pitch * (cols - 1); + if (dest_row_pitch < 0) { + dest -= dest_row_pitch * (rows - 1); + } first = -1; addr = pd; -- cgit v1.2.3-55-g7522