diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-09-10 19:21:13 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-09-10 19:21:13 +0000 |
commit | 306933046cdc70e20af7facea8bc8a975812787e (patch) | |
tree | 05c360b1c210159a76c602f1279c8d30db53325b /progs/windml/uglflip.c | |
parent | 30230a9cd171128c34c55bd751242dbe07dc3a89 (diff) | |
download | external_mesa3d-306933046cdc70e20af7facea8bc8a975812787e.zip external_mesa3d-306933046cdc70e20af7facea8bc8a975812787e.tar.gz external_mesa3d-306933046cdc70e20af7facea8bc8a975812787e.tar.bz2 |
WindML updates (Stephane Raimbault)
Diffstat (limited to 'progs/windml/uglflip.c')
-rw-r--r-- | progs/windml/uglflip.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/progs/windml/uglflip.c b/progs/windml/uglflip.c index ffc6ece..0ca068f 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); |