[osg-users] Get monitor resolutions on extended desktops

Sebastian Schmidt herrdersuppen at gmail.com
Fri Jul 8 01:15:18 PDT 2016


Hi,

I try to get the single screen resolution for each monitor of the user, regardless weither if he has enabled an extended desktop or other configs.

I currently do this with: 


Code:
osg::ref_ptr<osg::GraphicsContext::WindowingSystemInterface> pWsi = osg::GraphicsContext::getWindowingSystemInterface();

pWsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, height);



On two monitors and extended desktop i only get the total stretched resolution.
... 

Thank you!

Cheers,
Sebastian[/code]

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








More information about the osg-users mailing list