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
This commit is contained in:
Stephan Aßmus 2008-07-21 12:25:33 +00:00
parent d0dc969483
commit 167caf601e

View File

@ -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");
}