On 8/21/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
> n 8/21/07, Serge Lages <[EMAIL PROTECTED]> wrote:
> > Is there any way to get the screen refresh rate ? In
> > WindowingSystemInterface there is a setScreenRefreshRate method, but not a
> > get version.
>
> We could certainly add a getScreenRefreshRate() method to
> WindowingSystemInterface, and it should be implementatable in some
> manner.  I don't know offhand how to implement on each platform though
> so members of the community will need to chip in with suggestions on
> how to implement.
>
> > If this is not possible, is there a way to change the screen resolution and
> > keep the same refresh rate ? The problem I have is that when I change the
> > fullscreen resolution for my app and come back to the initial desktop
> > resolution when I close it, the refresh rate has changed (it sets the most
> > little value possible, in my case 60Hz instead of 85).
>
> I would have thought it would be possible, I didn't implement the
> screen res setting code myself and its only currently implemented
> under Windows, so will need to defer to others.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Under X, if the RANDR extension is supported, you can use  the
Xrandr(3x) library to get and set the refresh rate for a screen (as
well as changing screen size/modes).  You ought to be able to query
the current screen config before making modifications, and restore the
original config later.

The upcoming RandR 1.2 (will be part of the X.org 7.3 release) will
also support display hotplug and run-time (re-)configuration of
multi-head setups (also requires driver support).

-- 
Leif Delgass
[EMAIL PROTECTED]
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to