d6efb68b3a5c75903d00381af607f50edd6d5a9d
[mesa.git] / src / glut / os2 / glut_fullscrn.cpp
1
2 /* Copyright (c) Mark J. Kilgard, 1995, 1998. */
3
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
7
8 #include <assert.h>
9
10 #include "glutint.h"
11
12 /* CENTRY */
13 void GLUTAPIENTRY
14 glutFullScreen(void)
15 {
16 assert(!__glutCurrentWindow->parent);
17 IGNORE_IN_GAME_MODE();
18 #if !defined(_WIN32) && !defined(__OS2PM__)
19 if (__glutMotifHints == None) {
20 __glutMotifHints = XSGIFastInternAtom(__glutDisplay, "_MOTIF_WM_HINTS",
21 SGI_XA__MOTIF_WM_HINTS, 0);
22 if (__glutMotifHints == None) {
23 __glutWarning("Could not intern X atom for _MOTIF_WM_HINTS.");
24 }
25 }
26 #endif
27
28 __glutCurrentWindow->desiredX = 0;
29 __glutCurrentWindow->desiredY = 0;
30 __glutCurrentWindow->desiredWidth = __glutScreenWidth;
31 __glutCurrentWindow->desiredHeight = __glutScreenHeight;
32 __glutCurrentWindow->desiredConfMask |= CWX | CWY | CWWidth | CWHeight;
33
34 __glutPutOnWorkList(__glutCurrentWindow,
35 GLUT_CONFIGURE_WORK | GLUT_FULL_SCREEN_WORK);
36 }
37
38 /* ENDCENTRY */