From f09e17c3c564e8310125a10c03397cbf473ff643 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 1 Jul 2020 18:03:10 +0200 Subject: Remove $Id$ tags, update URL's, and more - remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers. --- src/glut_compatibility.cxx | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'src/glut_compatibility.cxx') 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$". -// -- cgit v1.2.3