From: | "Joseph Jezak (josejx)" <josejx@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-src commit in xac/py: arch.py |
Date: | Thu, 16 Jul 2009 21:54:12 |
Message-Id: | E1MRYu2-0006dv-Ck@stork.gentoo.org |
1 | josejx 09/07/16 21:54:10 |
2 | |
3 | Modified: arch.py |
4 | Log: |
5 | Fix for multiple monitors with one card. |
6 | |
7 | Revision Changes Path |
8 | 1.9 xac/py/arch.py |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-src/xac/py/arch.py?rev=1.9&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-src/xac/py/arch.py?rev=1.9&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-src/xac/py/arch.py?r1=1.8&r2=1.9 |
13 | |
14 | Index: arch.py |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-src/xac/py/arch.py,v |
17 | retrieving revision 1.8 |
18 | retrieving revision 1.9 |
19 | diff -u -r1.8 -r1.9 |
20 | --- arch.py 6 Jan 2008 19:47:18 -0000 1.8 |
21 | +++ arch.py 16 Jul 2009 21:54:10 -0000 1.9 |
22 | @@ -129,7 +129,12 @@ |
23 | ed = Edid(e) |
24 | if ed.valid: |
25 | cards[card].monitors.append(XAC_Monitor(ed)) |
26 | - card = card + 1 |
27 | + cards[card].monitors[-1].id = len(cards[card].monitors) - 1 |
28 | + ### We assume that if there are more monitors than |
29 | + ### cards, to just add them to the last card. |
30 | + ### I'll probably reconsider this in the future. |
31 | + if len(cards) < card + 1: |
32 | + card = card + 1 |
33 | |
34 | ### If the primary card doesn't have a monitor and we have a FB |
35 | ### use the FB to fill in the monitor info |