summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-06macOS: "Fix fullscreen window level corner cases"ManoloFLTK
This corresponds to changes of PR#277
2021-10-04Improve documentation about library build folders and moreAlbrecht Schlosser
lib/README.txt: clarify where built libraries are located documentation/src/basics.dox: clarify (C++) compiler command usage and improve documentation of the fltk-config script
2021-10-02Improve GIF error handling, terminate on some errorsAlbrecht Schlosser
There's not much we can do if we find unknown data in the main parser loop. The best we can do is terminating. If we find a GIF trailer (0x3b) this means logical end of file. If we get there in the main loop the GIF file is empty (no image). This behavior is consistent with many other image viewers including browsers (Firefox and Chrome).
2021-10-02Separate Fl_GIF_Image constructors with and w/o length argAlbrecht Schlosser
Document clearly that reading from memory w/o the length argument (old constructor) is discouraged (deprecated).
2021-10-01Refactor class Fl_Image_Reader to FLTK coding styleAlbrecht Schlosser
... and separate constructors for memory reader with and w/o length argument for better documentation.
2021-09-28Make Fl_Image_Reader::name() 'const' (#271)Albrecht Schlosser
Thanks to @wcout for finding this.
2021-09-28Fix potential memory leak in GIF image reader (#271)Albrecht Schlosser
This could happen if a read error or end of file was encountered.
2021-09-28Rename 'fileno()' method to 'get_fileno()' for MinGWAlbrecht Schlosser
See fltk.coredev thread "fltk-1.4 fluid build broken on 32-bit mingw" https://groups.google.com/g/fltkcoredev/c/W9LWbsNuGZg/m/MW1BVAkeAgAJ This regression was introduced in commit c8c1f51db7bd8929 in an attempt to fix a Visual Studio (MSVC) warning but broke "old" MinGW builds that define 'fileno' as a macro.
2021-09-27Add error checking and improve constructor of Fl_BMP_ImageAlbrecht Schlosser
- use new features of Fl_Image_Reader (read error and EOF checks) - add length argument to constructor reading from memory
2021-09-27Fix and improve Fl_GIF_Image (issue #271, #274)Albrecht Schlosser
- add error and EOF checks - fix transparent pixel index outside ColorMap (#271) - fix Fl_GIF_Image decoder bug (#274) - add Fl_Image_Reader::skip(unsigned int) - use new skip() method in GIF reader
2021-09-25Clarify return values and fix a minor issue (#271)Albrecht Schlosser
Fix: Fl_Image_Reader::seek() would not clear the error flag when reading from memory.
2021-09-25Enable error and EOF check in class Fl_Image_Reader (#271)Albrecht Schlosser
This is part 1 and a prerequisite for the fix of issue #271. It enables the user of this internal class (Fl_{BMP|GIF}_Image) to test for read errors and EOF (end of file) while reading. The method used to read data from memory got an optional third argument 'const long datasize = -1)' to limit the size of the memory block of data provided to the image reader. Default is -1 which means "unlimited" (backwards compatibility). Using only two arguments (w/o size limit) is deprecated and should only be done if the data size is not available.
2021-09-24macOS platform: facilitate use when another toolkit handles the system menu.ManoloFLTK
2021-09-21Improve documentation chapter "Basics"Albrecht Schlosser
Add '-ldl' to example command line and other minor changes
2021-09-21Doxygen docs: convert doxygen input file to current versionAlbrecht Schlosser
CMake only: "current" version means the doxygen version available on the system where docs are generated. Todo: do the same for autoconf/make builds.
2021-09-13Update nanosvg library to latest upstream versionAlbrecht Schlosser
commit ccdb1995134d340a93fb20e3a3d323ccb3838dd0 Merge: 3cdd4a9 419782d Author: Mikko Mononen <memononen@gmail.com> Date: Fri Sep 3 21:24:42 2021 +0300 Merge pull request #198 from ctrlcctrlv/CVE_2019_1000032 Fix decimal values in color fields (nsvg__parseColorRGB, nsvg__parseColorHex)
2021-09-12Fix malloc/delete mismatch (X11 only)Albrecht Schlosser
2021-09-09Improve documentation of Fl_Image (Issue #272)Albrecht Schlosser
Try to explain what count() returns and what data() contains which can be different by image type.
2021-09-01Remove stray tabGreg Ercolano
2021-08-31Fix MSVC 'fileno' warning in example program (#109)Albrecht Schlosser
2021-08-31Fix more MSVC warnings in test apps (#109)Albrecht Schlosser
- test/checkers.cxx - test/cube.cxx - test/offscreen.cxx - test/unittest_simple_terminal.cxx - test/utf8.cxx
2021-08-31Fix MSVC 'GLfloat' warnings in test apps (#109)Albrecht Schlosser
2021-08-31Fix MSVC compiler warnings in test/icon.cxx (#109)Albrecht Schlosser
Also: - remove unnecessary 'size_t' conversions from FL/fl_casts.H - add reverse conversions from integer types to 'void *'
2021-08-31Fix MSVC warnings in test/fonts.cxx (issue #109)Albrecht Schlosser
2021-08-30Fix MSVC "fileno" warnings in fluidAlbrecht Schlosser
2021-08-30Fix Windows (VS) compiler warnings in fluidAlbrecht Schlosser
2021-08-30Add experimental FL/fl_casts.H (issue #109)Albrecht Schlosser
2021-08-30Fix MSVC compiler warnings (PR #267)fire-eggs
2021-08-30Fix VS2017 'pclose' error, and DIR formattingGreg Ercolano
2021-08-30Fix two compiler warnings [-Wunused-variable]Albrecht Schlosser
2021-08-30Fix compiler warnings (Windows only)Albrecht Schlosser
src/Fl_Native_File_Chooser_WIN32.cxx:331:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 331 | while ( s=strchr(s,'\\') ) *s = '/'; | ~^~~~~~~~~~~~~~~ src/Fl_Native_File_Chooser_WIN32.cxx:336:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 336 | while ( s=strchr(s,'/') ) *s = '\\'; | ~^~~~~~~~~~~~~~
2021-08-30Fix compiler warnings (Windows, MSVC)Albrecht Schlosser
2021-08-30Remove unused declaration of Fl_CharAlbrecht Schlosser
2021-08-28add fl_filename_match comments as per STR3186Duncan Gibson
add Notes: section to fl_filename_match documentation explaining case-sensitivity [or not] and use of \x see also https://www.fltk.org/str.php?L3186
2021-08-27Fix "Tooltip causing Window to 'unfocus' on Windows" (#261)Albrecht Schlosser
This fixes a regression introduced in FLTK 1.4 in commit 3bc5be71a39bf2ed9d9937a4f60df61dd6d3a2b4 ("Rewrite Fl_Tooltip.cxx for the driver model").
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-08-27GitHub Actions (Linux): add 'apt-get update'Albrecht Schlosser
Error was: E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libegl-mesa0_21.0.3-0ubuntu0.2~20.04.1_amd64.deb 404 Not Found [IP: 52.147.219.192 80] E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-dev_21.0.3-0ubuntu0.2~20.04.1_amd64.deb 404 Not Found [IP: 52.147.219.192 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Error: Process completed with exit code 100.
2021-08-27Remove an extra semicolontetsuhaut
One less warning, yay !
2021-08-06Fix problem in native file chooser with macOS 12 "Monterey" (beta).ManoloFLTK
2021-08-05Have Fl_Quartz_Copy_Surface_Driver account for current display scaling factor.ManoloFLTK
2021-08-04macOS: account for deprecation of [NSBitmapImageRep ↵ManoloFLTK
initWithFocusedViewRect:] in macOS 10.14
2021-08-03macOS: fix paste of image for macOS 11.xManoloFLTK
With macOS 11.x, the pasteboard image can be found with floating point pixel values. This changes makes FLTK process adequately such image data.
2021-07-26Add CMake compatibility functions and macrosAlbrecht Schlosser
CMake/compatibility.cmake: define functions and macros to be used if a particular CMake functionality requires a higher CMake version than FLTK's minimum CMake version, see 'cmake_minimum_required(...)' in the root CMakeLists.txt. Note: target_link_directories() is available since CMake 3.13
2021-07-24Fix © year.ManoloFLTK
2021-07-24Remove useless friend declaration.ManoloFLTK
2021-07-21Call pthread's recursive mutex on Linux (Issue #245)Albrecht Schlosser
Add CMake test for PTHREAD_MUTEX_RECURSIVE Add autoconf/configure compile test for PTHREAD_MUTEX_RECURSIVE Replace "#ifdef PTHREAD_MUTEX_RECURSIVE" with "#ifdef HAVE_PTHREAD_MUTEX_RECURSIVE" and define HAVE_PTHREAD_MUTEX_RECURSIVE in config.h
2021-07-17Fix macOS Apple Silicon architecture name (arm64)Michael R Sweet
2021-07-12macOS: fix fltk_cairo shared library (issue #250)Albrecht Schlosser
- add missing dependencies to build the shared libfltk_cairo(.dylib) - remove incorrect dependency on cairo from libfltk - add cairo_test-shared demo (linked with shared libs)
2021-07-08Prevent CMake from expanding commentsAlbrecht Schlosser
Unfortunately CMake doesn't check for comments and expands the example syntax! Is this a CMake bug? Anyway, this is fixed now.
2021-07-08Harmonize and document syntax of config.h source filesAlbrecht Schlosser
- configh.in: add and improve comments, reorder statements - configh.cmake.in: add comments, fix whitespace - src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx: fix trailing whitespace