summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-04Improve use of fl_create_print_window() under WindowsManoloFLTK
2024-04-04Improve use of fl_create_print_window() under X11ManoloFLTK
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-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-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 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-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.
2024-03-18Fix a Visual Studio compiler warningAlbrecht Schlosser
2024-03-18Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPIManoloFLTK
2024-03-18Restore building on old Linux/Unix systems lacking Xutf8LookupString()ManoloFLTK
2024-03-18 Fix "FLTK on NetBSD very slow on X11 with Unicode locale" (#935)ManoloFLTK
2024-03-16Fix memory leak in Fl_X11_Screen_Driver.cxx (#934)Albrecht Schlosser
Fl_X11_Screen_Driver::set_spot() did not free the list of missing fonts returned by XCreateFontSet(). This commit also initializes some variables and reformats code, but the only notable change is to call XFreeStringList(missing_list) if missing_list is not NULL.
2024-03-16Create enum Fl_Wayland_Screen_Driver::cursor_shapesManoloFLTK
2024-03-15Fix a bunch of compiler warnings, particularly for old compilersAlbrecht Schlosser
Works now much better with old C99 and C++98 standard compilers. Fixed: C++ comments in C files and headers included by C files. There are still some warnings with C90 though but these would be hard to fix and left as-is for now. test/fractals.cxx: some arrays were too small by 1, or the compiler warned at least (false positive?). Anyway, it's fixed now.
2024-03-15STR 3489: fix alpha blending for X11Matthias Melcher
2024-03-15Have FLTK use libdecor at version > 0.2.2ManoloFLTK
- it's no longer necessary to take care of the change in the layout of "struct libdecor" between versions ≤ 0.2.2 and > 0.2.2 of libdecor - version > 0.2.2 contains MR131, that is, it defines LIBDECOR_WINDOW_STATE_RESIZING so the hack to emulate it is no longer necessary - CMake option FLTK_USE_SYSTEM_LIBDECOR now requires libdecor version > 0.2.2 to be activated, otherwise the bundled libdecor is used - what will be the libdecor version after 0.2.2 (0.2.3? 0.3.0?) is not known as of today
2024-03-13Improve Fl_Wayland_Screen_Driver::base_scale(int)ManoloFLTK
2024-03-13Update libdecor to upstream commit 4f2c03d5 - cont'dManoloFLTK
2024-03-13Remove useless X11 libraries when building with -DFLTK_BACKEND_X11=0ManoloFLTK
2024-03-12Fix several compiler warningsAlbrecht Schlosser
Three unrelated but only minor warnings.
2024-03-12Fix trimming of trailing whitespace in Fl_Terminal::text()Albrecht Schlosser
... and document a missing parameter.
2024-03-12Fix use of FLTK_SCALING_FACTOR under macOSManoloFLTK
2024-03-12 using xlib to query the new DPI (old #910) (PR #913)ManoloFLTK
Thanks to Mike Qin for finding how to query the possibly changed DPI value of an X11 display while an FLTK app keeps running without running an external command in a pipe.
2024-03-11Add Fl_Terminal to "Scrollbar Size" unittest (#931)Greg Ercolano
This involved enlarging the unittest main window to make room for the additional test. Adding this test revealed a problem in Fl_Terminal's global scrollbar size handling, which is fixed here as well. Also fixed a small issue in the demo's debugging terminal with the horiz scrollbar.
2024-03-11Refit display rows/cols preset, remove test codeGreg Ercolano
2024-03-11Fix Fl_Terminal horiz scrollbar appearing needlessly (#930)Greg Ercolano
2024-03-11 macOS: Fullscreen window loses sys menu bar if 2nd window is opened (#924)ManoloFLTK
2024-03-11Fix: Filechooser preview of XML file shows it as a corrupt image (#926)ManoloFLTK