Hi,
I'm trying to get the screen refresh rate from 
GraphicsWindowX11::getScreenSettings(...). Looking at the code I realized the 
point is the xrandr version. In fact supportsRandr() methods require xrandr 
version at least 1.2. But since I found the line:

OSG_NOTICE << "You must build osgViewer with Xrandr 1.2 or higher for 
setScreenSettings support!" << std::endl;

I suspect my xrandr 1.1.1 whould be enough to just read the sceen refresh rate 
(and it works fine indeed if remove the xrandr version check!).
Moreover the supportsRandr() check is used just in two methods that simply read 
the screen settings while in setScreenSettings(...)  it is not used at all.

Now, in the actual code (I verified the OSG trunk), the xrand version check is 
really required?

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65602#65602





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to