From: Christopher John Purnell Date: Sat, 4 Aug 2001 12:22:42 +0000 (+0000) Subject: Improved window positioning. X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=53a4e301b98d6945e64648e6f0d1d9b823c9bc7d;p=freeglut Improved window positioning. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@18 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/freeglut-1.3/freeglut_window.c b/freeglut-1.3/freeglut_window.c index 6fdf638..13f4610 100644 --- a/freeglut-1.3/freeglut_window.c +++ b/freeglut-1.3/freeglut_window.c @@ -389,8 +389,8 @@ void fgOpenWindow( SFG_Window* window, const char* title, int x, int y, int w, i */ sizeHints.flags = 0; - sizeHints.flags |= (fgState.Position.Use == TRUE) ? USPosition : PPosition; - sizeHints.flags |= (fgState.Size.Use == TRUE) ? USSize : PSize; + if (fgState.Position.Use == TRUE) sizeHints.flags |= USPosition; + if (fgState.Size.Use == TRUE) sizeHints.flags |= USSize; /* * Fill in the size hints values now (the x, y, width and height @@ -438,7 +438,7 @@ void fgOpenWindow( SFG_Window* window, const char* title, int x, int y, int w, i /* * This somehow fixes the glutGet() GLUT_WINDOW_X and GLUT_WINDOW_Y problem... */ - XMoveWindow( fgDisplay.Display, window->Window.Handle, x, y ); + //XMoveWindow( fgDisplay.Display, window->Window.Handle, x, y ); /* * In game mode, move the viewport a bit to hide the decorations.