diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-01 18:03:10 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-06 20:28:20 +0200 |
| commit | f09e17c3c564e8310125a10c03397cbf473ff643 (patch) | |
| tree | 8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/fl_images_core.cxx | |
| parent | b0e0c355edaa2e23148cb0260ada907aec930f05 (diff) | |
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.
Diffstat (limited to 'src/fl_images_core.cxx')
| -rw-r--r-- | src/fl_images_core.cxx | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx index 3df7fcd27..c2d950533 100644 --- a/src/fl_images_core.cxx +++ b/src/fl_images_core.cxx @@ -1,6 +1,4 @@ // -// "$Id$" -// // FLTK images library core. // // Copyright 1997-2010 by Easy Software Products. @@ -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 // // Contents: // @@ -45,13 +43,13 @@ // the extra image formats that aren't part of the core FLTK library. // -static Fl_Image *fl_check_images(const char *name, uchar *header, int headerlen); +static Fl_Image *fl_check_images(const char *name, uchar *header, int headerlen); /** \brief Register the image formats. - This function is provided in the fltk_images library and + This function is provided in the fltk_images library and registers all of the "extra" image file formats that are not part of the core FLTK library. */ @@ -65,19 +63,19 @@ void fl_register_images() { // 'fl_check_images()' - Check for a supported image format. // -Fl_Image * // O - Image, if found -fl_check_images(const char *name, // I - Filename - uchar *header, // I - Header data from file - int headerlen) { // I - Amount of data +Fl_Image * // O - Image, if found +fl_check_images(const char *name, // I - Filename + uchar *header, // I - Header data from file + int headerlen) { // I - Amount of data if (memcmp(header, "GIF87a", 6) == 0 || - memcmp(header, "GIF89a", 6) == 0) // GIF file + memcmp(header, "GIF89a", 6) == 0) // GIF file return new Fl_GIF_Image(name); - if (memcmp(header, "BM", 2) == 0) // BMP file + if (memcmp(header, "BM", 2) == 0) // BMP file return new Fl_BMP_Image(name); if (header[0] == 'P' && header[1] >= '1' && header[1] <= '7') - // Portable anymap + // Portable anymap return new Fl_PNM_Image(name); #ifdef HAVE_LIBPNG @@ -110,8 +108,3 @@ fl_check_images(const char *name, // I - Filename return 0; } - - -// -// End of "$Id$". -// |
