diff options
author | Philippe Houdoin <[email protected]> | 2004-08-14 10:27:08 +0000 |
---|---|---|
committer | Philippe Houdoin <[email protected]> | 2004-08-14 10:27:08 +0000 |
commit | a041e62418a72f0fd379e50263e1c9d2e6c6bb55 (patch) | |
tree | 578847e0704507461122c73f5fff867e284a5c37 /src/glut/beos/glutDstr.cpp | |
parent | fad0e5d448d9a2b55a7faa3fcb569470c381fb4b (diff) |
Update to Jake Hamby's BeOS GLUT 3.7 port.
Diffstat (limited to 'src/glut/beos/glutDstr.cpp')
-rw-r--r-- | src/glut/beos/glutDstr.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/glut/beos/glutDstr.cpp b/src/glut/beos/glutDstr.cpp index c594cfdafd5..281a0397017 100644 --- a/src/glut/beos/glutDstr.cpp +++ b/src/glut/beos/glutDstr.cpp @@ -1,5 +1,10 @@ /*********************************************************** - * Copyright (C) 1997, Be Inc. All rights reserved. + * Copyright (C) 1997, Be Inc. Copyright (C) 1999, Jake Hamby. + * + * 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. + * * * FILE: glutDstr.cpp * @@ -46,8 +51,7 @@ glutInitDisplayString(const char *string) * RETURNS: 1 if the current display mode is possible, else 0 ***********************************************************/ int __glutConvertDisplayModeFromString(unsigned long *options) { - ulong newoptions = BGL_DOUBLE; - gState.swapHack = true; // assume single buffered + ulong newoptions = 0; char *word = strtok(gState.displayString, " \t"); do { @@ -66,7 +70,7 @@ int __glutConvertDisplayModeFromString(unsigned long *options) { } else if(!strcmp(word, "depth")) { newoptions |= BGL_DEPTH; } else if(!strcmp(word, "double")) { - gState.swapHack = false; + newoptions |= BGL_DOUBLE; } else if(!strcmp(word, "stencil")) { newoptions |= BGL_STENCIL; } |