summaryrefslogtreecommitdiff
path: root/tests/testdisplay.c
diff options
context:
space:
mode:
authorYi Sun <yi.sun@intel.com>2013-01-13 10:10:24 +0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-01-14 15:31:52 +0100
commitcdd352df95b8dfd6a6bab7014be2a15526643721 (patch)
tree44b66dfcb844b1ce20b1ec428fd615c49f54b7d1 /tests/testdisplay.c
parentc612481a196f642ae6a3a67631d7a312e506e1b4 (diff)
tests/testdisplay.c: Fix the issue which don't display anything until '-o' given.
Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r--tests/testdisplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 7aef940f..f2711ae6 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -598,7 +598,7 @@ int update_display(void)
/* Find any connected displays */
for (c = 0; c < resources->count_connectors; c++) {
connectors[c].id = resources->connectors[c];
- if ( connectors[c].id != specified_disp_id )
+ if ( only_one_mode == 1 && connectors[c].id != specified_disp_id )
continue;
set_mode(&connectors[c]);