On Tue, 20 Sep 2011 15:37:20 -0400, Matt Turner <matts...@gmail.com> wrote:

>       - checking for the appropriate Xrandr version.
>         XRRGetScreenResourcesCurrent is a 1.3 function. It's not totally
>         clear to me what the difference between it and XRRGetScreenResources
>         is. (These aren't documented in the man page)

XRRGetScreenResourcesCurrent returns the current modes without also
polling the hardware for changes. It's far cheaper, and should always be
used unless you plan on responding to changes. And, yes, you have to
check the randr version yourself. XRRQueryVersion will do that for you.

>       - How do I know the current mode? resource->modes[0] can't be right.

Query the associated CRTC; the current mode is identified in there.

-- 
keith.pack...@intel.com

Attachment: pgpqCEu6VGHIc.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to