summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-05-02 13:41:10 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-05-03 13:09:54 +0300
commitc44726bd5f30c3706432a9711d99166c58208572 (patch)
tree324988e65c72fcdd380fecf36c5afb76e1d4ec97
parenta267a4b31516a2347ec2c8413e3f59dcdbd1363a (diff)
server/tests: use the correct dimensions in SIMPLE_UPDATE
-rw-r--r--server/tests/test_display_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index 1c293f4..f17c05e 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;
}