summary refs log tree commit diff stats
path: root/hw/framebuffer.c
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2011-06-17 13:04:36 +0300
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-04 22:12:21 +0200
commit9312805d33e8b106bae356d13a8071fb37d75554 (patch)
tree557cb02fdb8e8ff07c75e3b4d5a91f07cd6e5598 /hw/framebuffer.c
parent462a8bc6468912b79629f20f18798558342ce315 (diff)
downloadfocaccia-qemu-9312805d33e8b106bae356d13a8071fb37d75554.tar.gz
focaccia-qemu-9312805d33e8b106bae356d13a8071fb37d75554.zip
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 <anarsoul@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/framebuffer.c')
-rw-r--r--hw/framebuffer.c3
1 files changed, 3 insertions, 0 deletions
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;