[osg-submissions] GraphicsWindowWin32 fix to prevent resizing window height to zero
Robert Osfield
robert.osfield at gmail.com
Sat Dec 8 02:57:39 PST 2007
On Dec 8, 2007 10:42 AM, Adrian Egli <3dhelp at gmail.com> wrote:
> Hi
>
> i came up with short review :
>
> Quick fix to this is relax condition:
> > if (clientRect.bottom==0 || clientRect.right==0)
>
> make it not more sense to prevent either bottom == 0 or/and right == 0 size
>
> if ( clientRect.bottom==0 ) ...
> if ( clientRect.right==0 ) ...
O.K. you've got me confused, changing the && to || does prevent
problems if either bottom or right equals zero, I really don't know
what using two separate if statements would provide.
Robert.
More information about the osg-submissions
mailing list