diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-13 21:49:46 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-06-13 21:49:46 +0000 |
commit | 225517aff0afc3270fab277d1c9ac2864053820c (patch) | |
tree | fa00e2b162788b4fe2ebb9254baf6526997c9903 /src/glut/os2/glut_fullscrn.cpp | |
parent | 8fa507592b7bdb087c9eb32ed2322cb805b724ec (diff) |
GLUT for OS/2 (Evgeny Kotsuba)
Diffstat (limited to 'src/glut/os2/glut_fullscrn.cpp')
-rw-r--r-- | src/glut/os2/glut_fullscrn.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/glut/os2/glut_fullscrn.cpp b/src/glut/os2/glut_fullscrn.cpp new file mode 100644 index 0000000000..d6efb68b3a --- /dev/null +++ b/src/glut/os2/glut_fullscrn.cpp @@ -0,0 +1,38 @@ +
+/* Copyright (c) Mark J. Kilgard, 1995, 1998. */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+#include <assert.h>
+
+#include "glutint.h"
+
+/* CENTRY */
+void GLUTAPIENTRY
+glutFullScreen(void)
+{
+ assert(!__glutCurrentWindow->parent);
+ IGNORE_IN_GAME_MODE();
+#if !defined(_WIN32) && !defined(__OS2PM__)
+ if (__glutMotifHints == None) {
+ __glutMotifHints = XSGIFastInternAtom(__glutDisplay, "_MOTIF_WM_HINTS",
+ SGI_XA__MOTIF_WM_HINTS, 0);
+ if (__glutMotifHints == None) {
+ __glutWarning("Could not intern X atom for _MOTIF_WM_HINTS.");
+ }
+ }
+#endif
+
+ __glutCurrentWindow->desiredX = 0;
+ __glutCurrentWindow->desiredY = 0;
+ __glutCurrentWindow->desiredWidth = __glutScreenWidth;
+ __glutCurrentWindow->desiredHeight = __glutScreenHeight;
+ __glutCurrentWindow->desiredConfMask |= CWX | CWY | CWWidth | CWHeight;
+
+ __glutPutOnWorkList(__glutCurrentWindow,
+ GLUT_CONFIGURE_WORK | GLUT_FULL_SCREEN_WORK);
+}
+
+/* ENDCENTRY */
|