We have been having this problem for a long time, but only when we are using 
dual monitors. If we go to a single monitor, then all is fine. Also ours is set 
to run in full screen, but only on one of the 2 monitors. It seems completely 
random when it would work and when it wasn't. We just ignored it since our 
delivery target will only have a single screen and it is fine then. I would be 
interested in the answer though.

-----Original Message-----
From: osg-users [mailto:[email protected]] On Behalf 
Of Chris Hidden
Sent: Wednesday, November 12, 2014 5:27 AM
To: [email protected]
Subject: Re: [osg-users] Full Screen Offset Problem


Voerman, L. wrote:
> Just a fast suggestion:did you try:
> _graphicsWindow->setWindowDecoration(false);
> 
> Regards, Laurens.
> 


Well I have set windowDecoration in traits to false:

windowDecoration        = false;

If thats what you meant.  I also have the extended styles and styles (Added in 
the OSG source GraphicsWindowWin32.cpp):

windowStyle        = WS_VISIBLE | WS_POPUP ;
extendedStyle     = WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_TRANSPARENT | 
WS_EX_NOACTIVATE ; 

None of these styles though should give this sort of effect that I am aware of 
at least.  I also built a simple program to try and narrow down the problem and 
found a fix.  I don't like it because I don't really understand why its 
behaving this way.  

To solve it I simply shifted the view 10 units to the right and 10 units up so:

viwer->setUpViewInWindow(10, -10, screen->width(), screen->height());

That solves it.  However I haven't tested this on other screen with other 
resolutions so I am skeptical.

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





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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to