Hi Jean-Sébastien,

The cause is probably a bug in Windows itself (the taskbar being exposed
after toggling the graphics window from full-screen to windowed mode should
cause it to be repainted, but evidently it isn't).

The fix was to force a repaint of the desktop (::InvalidateRect(NULL, NULL,
...)) so that Windows has no choice but to repaint (which it does). Guess
Windows just needed a little bit of hand-holding... :-)

André

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jean-Sébastien Guay
Sent: September-27-07 2:44 PM
To: [email protected]
Subject: Re: [osg-submissions] Fix for repaint issue when going full-screen
to windowed mode

Hello André,

> Attached is a fix for the taskbar repaint issue that occurs when a
graphics
> window is toggled from full-screen mode to windowed mode (as identified by
> Gert van Maren a couple of weeks ago).

Just out of curiosity, what was the cause and fix? I've been working  
on Win32 systems for a while, but am not very familiar with Win32  
programming, so I am curious as to what could cause that kind of a  
problem...

Thanks for the fix, btw.

J-S
-- 
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                         http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


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

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

Reply via email to