[PATCH] tests/testdisplay.c: Fix the issue which don't display anything until '-o' given.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Yi Sun <yi.sun at intel.com>

diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 7aef940..f2711ae 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]);
-- 
1.7.6.4



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux