summary refs log tree commit diff stats
path: root/hw/framebuffer.c
diff options
context:
space:
mode:
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;