summaryrefslogtreecommitdiff
path: root/src/glut_compatibility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut_compatibility.cxx')
-rw-r--r--src/glut_compatibility.cxx30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/glut_compatibility.cxx b/src/glut_compatibility.cxx
index 24aafef58..df657a808 100644
--- a/src/glut_compatibility.cxx
+++ b/src/glut_compatibility.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// GLUT emulation routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2016 by Bill Spitzak and others.
@@ -9,11 +7,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
// Emulation of Glut using fltk.
@@ -139,10 +137,10 @@ int Fl_Glut_Window::handle(int event) {
break;
} else {
if (special) {
- int k = Fl::event_key();
- if (k > FL_F && k <= FL_F_Last) k -= FL_F;
- special(k,ex,ey);
- return 1;
+ int k = Fl::event_key();
+ if (k > FL_F && k <= FL_F_Last) k -= FL_F;
+ special(k,ex,ey);
+ return 1;
}
break;
}
@@ -392,7 +390,7 @@ int glutGet(GLenum type) {
else
return 0;
//case GLUT_WINDOW_NUM_CHILDREN:
-//case GLUT_WINDOW_CURSOR: return
+//case GLUT_WINDOW_CURSOR: return
case GLUT_SCREEN_WIDTH: return Fl::w();
case GLUT_SCREEN_HEIGHT: return Fl::h();
//case GLUT_SCREEN_WIDTH_MM:
@@ -408,9 +406,9 @@ int glutGet(GLenum type) {
case GLUT_WINDOW_BUFFER_SIZE:
if (glutGet(GLUT_WINDOW_RGBA))
return glutGet(GLUT_WINDOW_RED_SIZE)+
- glutGet(GLUT_WINDOW_GREEN_SIZE)+
- glutGet(GLUT_WINDOW_BLUE_SIZE)+
- glutGet(GLUT_WINDOW_ALPHA_SIZE);
+ glutGet(GLUT_WINDOW_GREEN_SIZE)+
+ glutGet(GLUT_WINDOW_BLUE_SIZE)+
+ glutGet(GLUT_WINDOW_ALPHA_SIZE);
else
return glutGet(GLUT_WINDOW_COLORMAP_SIZE);
case GLUT_VERSION: return 20400;
@@ -457,7 +455,7 @@ int glutExtensionSupported( const char* extension )
const char *extensions, *start;
const int len = strlen( extension );
-
+
start = extensions = (const char *) glGetString(GL_EXTENSIONS);
if (!extensions) return 0;
@@ -488,7 +486,3 @@ void glutIdleFunc(void (*f)())
} // glutIdleFunc
#endif // HAVE_GL
-
-//
-// End of "$Id$".
-//