-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeremy Moles wrote: > On Tue, 2007-12-18 at 20:35 +0000, Robert Osfield wrote: >> On Dec 18, 2007 7:47 PM, Jan Ciger <[EMAIL PROTECTED]> wrote: >>> I guess RandR it is then, because some people voiced the support for >>> changing the resolution on the fly. RandR is the only reasonable way how >>> to do this on Unix at the moment. The older X extensions change >>> resolution, but do not resize the root window, leaving you with a >>> panning virtual desktop. >> Any volunteers, pretty please ;-) > > Ask you and shall receive! :) Hell, less than 24 hours is a pretty > decent turnaround time... > > Forwarding my patches to Submissions.
Wow, that's called - "Lead with the code" :)) BTW, I have noticed a comment in your diff whether or not the original resolution should be automatically restored. I would vote for yes, because otherwise I would have to query the original screen settings, store them somewhere and then pass them back to your code to restore the screen on exit. That sounds as bit dumb thing to do, because your code has all the information already. Furthermore, it enables the possibility of screwed up screen if the applications throws an exception that is not caught or some library just calls exit() (yes, some libs do that) and my cleanup code is not reached. I would have to wrap everything into a class with a catch-all exception handler around the code and deal with all this there. Quite a complication for a small program. How does this work for Windows? Are the settings restored automatically? One way or another, it would be good to be consistent across platforms. Regards, Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFHaYl9n11XseNj94gRAs9YAKDuoxpUOxxfu0UugqJq/Jzut8ss+gCcCxwU ZouHebbc3rqkGY19k3LkLWc= =xCNR -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org