Fixed a bug for UNIX_X11 where window reshape events were causing freeglut
authorRichard Rauch <rkr@olib.org>
Tue, 2 Dec 2003 15:03:48 +0000 (15:03 +0000)
committerRichard Rauch <rkr@olib.org>
Tue, 2 Dec 2003 15:03:48 +0000 (15:03 +0000)
commitcc3d2b8ed1fcabc2d2bf9739174c6209b2300030
tree49ab5679daedb8ceb1f3758366638dd8d885ac2f
parent6055caa963816364b4fefd32c3bd3d06ea968a85
Fixed a bug for UNIX_X11 where window reshape events were causing freeglut
to mark the window as *needing* a reshape (which during general display
callback handling would result in effectively a glutReshapeWindow()).

The code is now system-dependant.  It should be abstracted to a function,
but is presently copied in two places.  Sorry.

Also, inverted the order of the associated if()/else check (in both
WIN32 and UNIX_X11 branches) since the former "else" part was a one-line
callback invocation.

This fixes two seemingly unrelated bugs that I was seeing in UNIX_X11.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@374 7f0cb862-5218-0410-a997-914c9d46530a
src/freeglut_main.c