Hi,
I have a stituation where the viewport is smaller than the windows, causing the
region outside the viewport to not be cleared properly. Does anyone know how to
clear the background window?
I tied several things including the following:
Code:
void ClearClientBackground( HWND hWnd )
{
RECT oRect;
PAINTSTRUCT oPs;
GetUpdateRect( hWnd, &oRect, FALSE );
if( IsRectEmpty( &oRect ) )
{
GetClientRect( hWnd, &oRect );
}
BeginPaint( hWnd, &oPs );
BOOL bRet = BitBlt( oPs.hdc, oRect.left, oRect.top, oRect.right -
oRect.left, oRect.bottom - oRect.top,
NULL, oRect.left, oRect.top, BLACKNESS );
EndPaint( hWnd, &oPs );
}
I would appreciate it if someone can tell me how to clear the area window that
is outside the viewport area.
Thanks,
Guy
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35657#35657
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org