summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-11-01 11:50:51 -0800
committerEric Anholt <eric@anholt.net>2006-11-01 11:50:51 -0800
commitf30d7f912f36b110c3af7dc795e35456593781ab (patch)
treed483e0ac9178d25629026bd3486f9709f8b33048 /src
parent7195dfabd56239f08cdd8175a2ef3a66ef9600de (diff)
Update for the move of RandR phyiscal size information.
Diffstat (limited to 'src')
-rw-r--r--src/i830_randr.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/i830_randr.c b/src/i830_randr.c
index a1c4b12c..f8064b91 100644
--- a/src/i830_randr.c
+++ b/src/i830_randr.c
@@ -723,17 +723,15 @@ I830RandRSetInfo12 (ScreenPtr pScreen)
return FALSE;
nmode = 0;
+ /* We should pull info out of EDID to get the output physical
+ * size when available.
+ */
+ RROutputSetPhysicalSize(randrp->outputs[i], 0, 0);
+
for (p = 1; p >= 0; p--) {
for (mode = modes; mode; mode = mode->next) {
if ((p != 0) == ((mode->type & M_T_PREFERRED) != 0)) {
modeInfo.nameLength = strlen (mode->name);
- if (mon != NULL) {
- modeInfo.mmWidth = mon->widthmm;
- modeInfo.mmHeight = mon->heightmm;
- } else {
- modeInfo.mmWidth = 0;
- modeInfo.mmHeight = 0;
- }
modeInfo.width = mode->HDisplay;
modeInfo.dotClock = mode->Clock * 1000;