Thomas Winischhofer ([EMAIL PROTECTED]):

> Billy Biggs wrote:
> >>
> >>http://vektor.ca/bugs/atidriver/xpdy2.log includes the lines
> >>    screen #0:
> >>      dimensions:    2560x1024 pixels (867x347 millimeters)
> >>      resolution:    75x75 dots per inch
> >>is that any use ?
> >
> > Not in general.  I use the vidmode extension to get the current
> > resolution, since my users often make 720x480 modelines and such
> > things and switch to that (using ctrl-alt-+) to play video.
> > However, I use the geometry information to calculate the pixel
> > aspect ratio to use.
> 
> Erm, I might be mistaken, but the geometry information has nothing to
> do with the current display mode. If I have a screen of 1024x768,
> 260x195mm according to xdpyinfo, I still receive the same values after
> switching, say, to 1280x768 (which has a totally different aspect
> ratio)... hence, geometry is static and obviously independent of the
> current display mode...

  Calculating a pixel aspect ratio depends on the current resolution of
the display, and the geometry information of the display.  You're
correct, the goemetry information is static, but the resolution isn't,
that's why I have to use the vidmode extension to get the current
resolution.

> > So in this case, vidmode tells me our resolution is 1280x1024, and X
> > tells me that we're not using XINERAMA and that our geometry is
> > 867x347 millimeters.
> >
> >  Makes sense?
> 
> Not really. That xdpyinfo output is strange - 2560x1024 looks like two
> screens of 1280x1024 aside each other; is this a radeon machine using
> Alex' driver? Seems it's not the current one as it reports that
> Xinerama is not supported.

  Correct, I meant "what I'm doing makes sense".  The result does not.
This is the ATI firegl driver and it does not seem to support XINERAMA.
There are actually two screens both of size 1280x1024 and this is why my
code comes up with an incorrect pixel aspect ratio.

  So, does it now make sense to you what I'm doing and why this is so
bad? :)   Sorry for the poor explanation.

  -Billy

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to