Skip to contentSkip to conversation

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

PATCH Applied Yi Sun 2 participants 2 messages Jan 13, 2013 – Jan 14, 2013

lore
Share & tools
lore

Yi Sun

author
#0 lore raw

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

tests/testdisplay.c +1 -1
index 7aef940..f2711ae 100644
@@ -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]);
Signature · 1 line
1.7.6.4
#1 lore raw
Quoted 1 line · Yi Sun

Applied, thanks for the patch.
-Daniel

Quoted 21 lines
tests/testdisplay.c +1 -1
index 7aef940..f2711ae 100644
@@ -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]);
Signature · 6 lines
1.7.6.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch