[Spice-devel] [PATCH spice 17/18] server/tests: use the correct dimensions in SIMPLE_UPDATE

Yonit Halperin yhalperi at redhat.com
Wed May 2 07:01:52 PDT 2012


---
 server/tests/test_display_base.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index 8601611..1840bfa 100644
--- a/server/tests/test_display_base.c
+++ b/server/tests/test_display_base.c
@@ -506,8 +506,8 @@ static void produce_command(void)
             path_progress(&path);
             break;
         case SIMPLE_UPDATE: {
-            QXLRect rect = {.left = 0, .right = SURF_WIDTH,
-                            .top = 0, .bottom = SURF_HEIGHT};
+            QXLRect rect = {.left = 0, .right = (target_surface == 0 ? test_width : SURF_WIDTH),
+                            .top = 0, .bottom = (target_surface == 0 ? test_height : SURF_HEIGHT)};
             qxl_worker->update_area(qxl_worker, target_surface, &rect, NULL, 0, 1);
             break;
         }
-- 
1.7.7.6



More information about the Spice-devel mailing list