Improved window positioning.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@18 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
cjp 2001-08-04 12:22:42 +00:00
parent ddf7d9715a
commit 32b7dcf989

View File

@ -389,8 +389,8 @@ void fgOpenWindow( SFG_Window* window, const char* title, int x, int y, int w, i
*/ */
sizeHints.flags = 0; sizeHints.flags = 0;
sizeHints.flags |= (fgState.Position.Use == TRUE) ? USPosition : PPosition; if (fgState.Position.Use == TRUE) sizeHints.flags |= USPosition;
sizeHints.flags |= (fgState.Size.Use == TRUE) ? USSize : PSize; if (fgState.Size.Use == TRUE) sizeHints.flags |= USSize;
/* /*
* Fill in the size hints values now (the x, y, width and height * 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... * 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. * In game mode, move the viewport a bit to hide the decorations.