summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-14CMake: Use imported targets for PkgConfig packages (#954)Jordan Williams
This carries include directories and the required link flags. Several libraries brought in through pkg_check_modules aren't linked correctly using the _LDFLAGS variables. Instead, they link the libraries directly with `-l`. This is problematic because it doesn't properly pull in the actual directory of the library being linked when it is not in a system library directory. Likewise, the necessary include directories for several of these targets aren't properly set either. Linking against the imported targets automatically pulls in the necessary include directories.
2024-04-14Add example to fl_arc docs.Matthias Melcher
2024-04-13Remove "MS" from "MS Windows" in docs code, and commentsAlbrecht Schlosser
The system (platform) is called "Windows", "MS Windows" doesn't make much sense. I removed "MS" for consistency.
2024-04-12CMake: Improve detection of the GLU library and GL/glu.h header file (#953)Jordan Williams
* CMake: Improve detection of the GLU library and GL/glu.h header file Locate the GLU library and header independent of the GL library and header locations. Add the GLU header location to necessary target_include_directory calls. * CMake: Locate and use the GL include directory Find the GL include directory and use it in target_include_directories calls.
2024-04-12Fix "Support for NetBSD", part 4 (#944)Albrecht Schlosser
Add missing return statement to replacement function for trunc(). Closes #944
2024-04-11Remove remaining references to xdbe on X11Albrecht Schlosser
This option has been removed in 1.4.0 because it was unreliable and rarely used.
2024-04-09Fix Fl_Terminal::handle_unknown_char() for plot_char() (#948)Albrecht Schlosser
- Add 'int Fl_Terminal::handle_unknown_char(int drow, int dcol)' to write the "unknown" character to the intended display position. - Define Fl_Terminal::unknown_char as a static variable to avoid redundancy. In the future this might be overridden by users.
2024-04-08Improve CMake build configuration summaryAlbrecht Schlosser
- simplify and unify build option output - alignment can be changed in only 2 macros in CMake/fl_summary.cmake - output system library location of image libraries if applicable
2024-04-08Make Fl_GTK_Printer_Driver recognize more paper sizesManoloFLTK
also, make clear the B* paper size names are from JIS not ISO.
2024-04-08Improve Fl_GTK_Printer_Driver::begin_job()ManoloFLTK
2024-04-08Add Tabloid paper size to menu_print_page_size arrayManoloFLTK
2024-04-06Rename putchar() to plot_char() (#944)Greg Ercolano
Some old platforms (NetBSD, AIX) implement the common stdio "putchar()" function as a global macro which poisons the global namespace, preventing all C and C++ programs from using "putchar()" as a function or method. There was a long thread about this in fltk.coredev during the period Mar 25 2024 ~ Apr 4 2024, subject "RFC: Fl_Terminal::putchar() in public API" as to why we have no choice but to not use putchar() as a method name.
2024-04-05CMake: Fix detection of trunc() for WindowsAlbrecht Schlosser
2024-04-05Fix documentation example of the FL_FUNCTION_CALLBACK_#() macroManoloFLTK
2024-04-04Fix compiler warning, part 2 of #946Albrecht Schlosser
2024-04-04Fix compiler warning, part 1 of #946Albrecht Schlosser
2024-04-04Add NULL check to UNIX save_file() (#945)Greg Ercolano
2024-04-04FLUID: fix possible null pointer. GitHub #945Matthias Melcher
2024-04-04Improve use of fl_create_print_window() under WindowsManoloFLTK
2024-04-04Improve use of fl_create_print_window() under X11ManoloFLTK
2024-04-02Update misc/README.txtAlbrecht Schlosser
2024-04-02Move test/fromdos.c to misc/fromdos.c where it belongsAlbrecht Schlosser
This is a test file for developers only. Use with caution.
2024-04-02Add replacement for potentially missing trunc() (#944)Albrecht Schlosser
- add configure + CMake checks to define HAVE_TRUNC in config.h - src/Fl_Timeout.cxx: add local replacement function
2024-04-02Improve support for NetBSD (#944)Albrecht Schlosser
- fix gcc version check for FL_DEPRECATED macro - fix #include for select() on NetBSD < 3.0 (#944) For more info please see GitHub Issue #944
2024-04-02Remove dead code/comment: HP-UX 9.x not supportedAlbrecht Schlosser
README.Unix.txt documents that HP-UX 11.11 is required
2024-03-30Fix error in Fl_PostScript_File_Device::begin_page() under PangoManoloFLTK
This fixes the bug reported in fltk.general "Fl_Printer bug?"
2024-03-28macOS: Avoid possible crash in makeMainWindow when another win is modalManoloFLTK
2024-03-25Fix "Support for AIX" - part 2 (#942)Albrecht Schlosser
Add missing file counter increment, thanks to @michaelbauerle.
2024-03-24CMake for macOS platform: improve handling of -framework link argumentsManoloFLTK
2024-03-24Replace lround() calls by round() calls in class Fl_Anim_GIF_Image (#942)ManoloFLTK
2024-03-24Remove duplicated #include <config.h> directiveManoloFLTK
2024-03-23macOS: remove deprecated use of property allowedFileTypes in class NSSavePanelManoloFLTK
The recommended replacement requires macos ≥ 11.0 and a new framework: UniformTypeIdentifiers
2024-03-23Add necessary #include <config.h> directivesManoloFLTK
2024-03-22Fix "Support for AIX" (#942)Albrecht Schlosser
Slightly modified patch from @michaelbaeuerle (issue #942).
2024-03-22Add comments giving cairo version required for each cairo call if > 1.0ManoloFLTK
2024-03-21Remove "-no-pie" link option also from configure-based buildsManoloFLTK
2024-03-21CMake: Remove "-no-pie" build optionAlbrecht Schlosser
libdecor/build/Makefile: unused anyway (previously used building demos) src/CMakeLists.txt: broke some user builds, see fltk.general, thread "-no-pie in FLTK Libraries build." (Mar 17, 2024). Todo: check usage of "-fPIC" (libdecor builds)
2024-03-20Remove unused macro definitionsManoloFLTK
2024-03-20Add missing include file (#939)Albrecht Schlosser
2024-03-20Add configure option to build tests only on request (#940)Albrecht Schlosser
Option: ./configure --disable-test build test programs (default=yes) Thanks for the patch(es) to @michaelbaeuerle. I added `make test` to be able to build the test programs from the FLTK root directory if FLTK was configured with --disable-test.
2024-03-20Add compile-time check of required minimum cairo versionManoloFLTK
2024-03-20Use type cairo_region_t* for Fl_Region under Wayland platformManoloFLTK
2024-03-19Update dependencies, whitespace, and Fl_File_Chooser.cxxAlbrecht Schlosser
Rewrite src/Fl_File_Chooser.cxx from its .fl source file
2024-03-19Document fl_close_display()ManoloFLTK
2024-03-18Fix "Support for HP-UX" (#937)Albrecht Schlosser
Fix usage of vsscanf in Fl_Unix_System_Driver::clocale_vsscanf(). Final commit of all patches provided by the OP of issue #937 - if everything works now.
2024-03-18Add more public accessor methods to Fl_Grid (#937)Albrecht Schlosser
Some of these accessor methods should be private so they can't be used by user code but - due to compiler issues - they must be public for HP-UX 11.11 (for details see GitHub Issue #937).
2024-03-18Fix name clash on some systems (#937)Albrecht Schlosser
Rename local function and void using leading underscore.
2024-03-18CMake: formatting onlyAlbrecht Schlosser
2024-03-18Replace setenv() with putenv() on old systems (+937)Albrecht Schlosser
Add system check for setenv() function in configure and CMake.
2024-03-18Move nanosvg to a separate file, don't use 'roundf()' (#937)Albrecht Schlosser
Replacement of roundf() with nsvg__roundf() fixes one aspect of issue #937. Having the nanosvg implementation in its own module was planned anyway.