diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2008-01-18 18:05:49 +0100 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2008-01-18 18:06:17 +0100 |
commit | bfee7bf011625079fd79b1bf89198ffeb76096d2 (patch) | |
tree | 842c1bbe89392377b04d15329e5058816cdeac32 /src | |
parent | 2096022c0757b675d39dea8830125ba800b43160 (diff) |
Bug #13926: Unbreak Xinerama.
Diffstat (limited to 'src')
-rw-r--r-- | src/mga_driver.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c index be26e89..52ec22c 100644 --- a/src/mga_driver.c +++ b/src/mga_driver.c @@ -794,6 +794,7 @@ MGAProbe(DriverPtr drv, int flags) else for (i = 0; i < numUsed; i++) { ScrnInfoPtr pScrn = NULL; EntityInfoPtr pEnt; + int attrib_no; #ifdef DISABLE_VGA_IO MgaSavePtr smga; #endif @@ -844,46 +845,46 @@ MGAProbe(DriverPtr drv, int flags) switch (pEnt->chipset) { case PCI_CHIP_MGA2064: - i = 0; + attrib_no = 0; break; case PCI_CHIP_MGA1064: - i = 1; + attrib_no = 1; break; case PCI_CHIP_MGA2164: case PCI_CHIP_MGA2164_AGP: - i = 2; + attrib_no = 2; break; case PCI_CHIP_MGAG100: case PCI_CHIP_MGAG100_PCI: - i = 3; + attrib_no = 3; break; case PCI_CHIP_MGAG200: case PCI_CHIP_MGAG200_PCI: - i = 4; + attrib_no = 4; break; case PCI_CHIP_MGAG400: - i = 5; + attrib_no = 5; break; case PCI_CHIP_MGAG550: - i = 6; + attrib_no = 6; break; case PCI_CHIP_MGAG200_SE_A_PCI: case PCI_CHIP_MGAG200_SE_B_PCI: - i = 7; + attrib_no = 7; break; default: return FALSE; } - pMga->chip_attribs = & attribs[i]; + pMga->chip_attribs = & attribs[attrib_no]; if (pMga->chip_attribs->dual_head_possible) { MGAEntPtr pMgaEnt = NULL; |