From 167caf601e89398b4c6f5a83cf7988f841243888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 21 Jul 2008 12:25:33 +0000 Subject: [PATCH] When switching ports, the code forgot to also switch the detected flatpanel parameters. This caused ticket #1732 for me. At another place in the code, the native resolution is added to the supported mode list and there it is hardcoded to the first flatpanel info. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26540 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/radeon/monitor_detection.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/add-ons/accelerants/radeon/monitor_detection.c b/src/add-ons/accelerants/radeon/monitor_detection.c index 2b4fafea10..8a9b78b53d 100644 --- a/src/add-ons/accelerants/radeon/monitor_detection.c +++ b/src/add-ons/accelerants/radeon/monitor_detection.c @@ -1069,10 +1069,17 @@ Radeon_DetectDisplays(accelerator_info *ai) if (routes->port_info[1].mon_type == mt_none) { routes->port_info[0].mon_type = mt_crt; } else { - radeon_connector swap_entity; - swap_entity = routes->port_info[0]; + radeon_connector portSwapEntity; + fp_info panelInfoSwapEntity; + + portSwapEntity = routes->port_info[0]; routes->port_info[0] = routes->port_info[1]; - routes->port_info[1] = swap_entity; + routes->port_info[1] = portSwapEntity; + + panelInfoSwapEntity = ai->si->flatpanels[0]; + ai->si->flatpanels[0] = ai->si->flatpanels[1]; + ai->si->flatpanels[1] = panelInfoSwapEntity; + SHOW_ERROR0(2, "swapping active port 2 to free port 1"); }