From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yi Sun Subject: [PATCH] tests/testdisplay.c: Fix the issue which don't display anything until '-o' given. Date: Sun, 13 Jan 2013 10:10:24 +0800 Message-ID: <1358043024-17455-1-git-send-email-yi.sun@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C27AE5C78 for ; Sat, 12 Jan 2013 18:26:28 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Yi Sun 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