summaryrefslogtreecommitdiffstats
path: root/progs/windml/uglflip.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-09-10 19:21:13 +0000
committerBrian Paul <[email protected]>2001-09-10 19:21:13 +0000
commit306933046cdc70e20af7facea8bc8a975812787e (patch)
tree05c360b1c210159a76c602f1279c8d30db53325b /progs/windml/uglflip.c
parent30230a9cd171128c34c55bd751242dbe07dc3a89 (diff)
WindML updates (Stephane Raimbault)
Diffstat (limited to 'progs/windml/uglflip.c')
-rw-r--r--progs/windml/uglflip.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/progs/windml/uglflip.c b/progs/windml/uglflip.c
index ffc6ece2db1..0ca068f417d 100644
--- a/progs/windml/uglflip.c
+++ b/progs/windml/uglflip.c
@@ -171,15 +171,15 @@ UGL_LOCAL void loopEvent(void)
}
}
-void windMLFlip (void);
+void windMLFlip (UGL_BOOL windMLMode);
void uglflip (void)
{
- taskSpawn("tFlip", 210, VX_FP_TASK, 100000, (FUNCPTR)windMLFlip,
- 0,1,2,3,4,5,6,7,8,9);
+ taskSpawn ("tFlip", 210, VX_FP_TASK, 100000, (FUNCPTR)windMLFlip,
+ UGL_FALSE,1,2,3,4,5,6,7,8,9);
}
-void windMLFlip(void)
+void windMLFlip (UGL_BOOL windMLMode)
{
UGL_INPUT_DEVICE_ID keyboardDevId;
@@ -192,13 +192,18 @@ void windMLFlip(void)
qId = uglEventQCreate (eventServiceId, 100);
- umc = uglMesaCreateNewContext(UGL_MESA_DOUBLE_SW, NULL);
+ if (windMLMode)
+ umc = uglMesaCreateNewContext(UGL_MESA_SINGLE
+ | UGL_MESA_WINDML_EXCLUSIVE, NULL);
+ else
+ umc = uglMesaCreateNewContext(UGL_MESA_DOUBLE_SOFTWARE, NULL);
if (umc == NULL)
{
uglDeinitialize();
return;
}
+
uglMesaMakeCurrentContext(umc, 0, 0, UGL_MESA_FULLSCREEN_WIDTH,
UGL_MESA_FULLSCREEN_HEIGHT);