summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-02-21Bump version numbers to 1.4.2Albrecht Schlosser
2025-02-21Fix copyright, a typo, and remaining casts (#1207)Albrecht Schlosser
make remaining casts consistent with other casts of the same variables
2025-02-20Fix "Fl_JPEG_Image infinite longjmp loop on Mac release builds" (#1207)ManoloFLTK
2025-02-19Update "GitHub Actions" Linux runner to 'ubuntu-latest'Albrecht Schlosser
Note: ubuntu-20.04 will be phased out soon
2025-02-19Fix buffer overflow warning [-Wstringop-truncation]Albrecht Schlosser
Note: this fixes the warning, but a better fix would be to use either strlcpy(), fl_strlcpy(), or a string type in 1.5.0 or higher.
2025-02-19test/editor: ensure buffer terminationAlbrecht Schlosser
... in source file and documentation
2025-02-14Update bundled libdecor to last upstream version (21 jan 2025)ManoloFLTK
2025-02-14Fix "fltk-config reports dep on gtk3 when it does not exist" (#1201)ManoloFLTK
2025-02-08Make Fl_Cocoa_Gl_Window_Driver::capture_gl_rectangle() return a depth-4 imageManoloFLTK
This change allows to capture the rounded corners of a top-level GL window. Also, rename Fl_Cocoa_Window_Driver::capture_decorated_window_10_5() from capture_decorated_window_10_6() because this function uses CGWindowListCreateImageFromArray() available from macOS 10.5.
2025-02-06fix macOS Sonoma/Sequoia not capturing OpenGL text on macOS - cont'd (#1197ManoloFLTK
2025-02-06fix "macOS Sonoma/Sequoia not capturing OpenGL 1 text on macOS" (#1197)ManoloFLTK
2025-02-05macOS: restore building with SDK versions between 10.7 and 10.11ManoloFLTK
2025-02-05Fix typos and trailing whitespaceAlbrecht Schlosser
Also replace 'MSWindows' with 'Windows' where appropriate, leaving only old documents like README files from 1.3 and older as-is.
2025-02-04macOS: fix when fullscreen window looses and regains focus with SDK 10.6 (#1192)ManoloFLTK
2025-02-03macOS: Restore fullscreen window mode when using SDK < 10.7 (#1192)ManoloFLTK
2025-02-03fullscreen test app: prevent combination of fullscreen + maximizeManoloFLTK
Also, use more explicit button names
2025-02-03macOS: fix transition from single-screen fullscreen to "All Screens" fullscreenManoloFLTK
2025-02-03Avoid code repetitions among Fl_{X11_}Window_Driver::{un_}maximize() functionsManoloFLTK
2025-02-01Document "New FL_HELVETICA Font on Windows" (#478)Albrecht Schlosser
This commit adds only documentation.
2025-02-01Fix potential buffer overflow in Fl_Help_View (#1196)Albrecht Schlosser
2025-01-30macOS: add support of showing window to multi-screen fullscreen stateManoloFLTK
2025-01-30macOS: Fix "Full screen broken on macOS in FLTK 1.3.10 (regression)" (#1192)ManoloFLTK
FLTK now supports 2 types of fullscreen modes under macOS: 1) normal macOS fullscreen mode where the menubar and titlebar appear when mouse is moved to top of screen and the window covers one screen only; 2) multiple-screen mode that requires calling Fl_Window::fullscreen_screens() before. This commit fixes all possible transitions between these fullscreen modes and normal window mode.
2025-01-29Improve documentation of Fl_Box constructors (#1194)Albrecht Schlosser
Separate both constructor types and document parameters.
2025-01-27CMake: fix include directories of bundled image libsAlbrecht Schlosser
If FLTK has been built with bundled image libs the include directory of the *installed* library headers is 'FL/images' relative to the normal 'include' directory. The CMake property "include_directories" is now added to the installed fltk_images library so it is used when building user programs with bundled image libs.
2025-01-26Refrain static function capture_decorated_window_SCK() from capturing the cursorManoloFLTK
2025-01-24Same effect as a49b5ea with less lines of codeManoloFLTK
2025-01-24Fix "Wayland: redrawing of a surface may fail if a subsurface is being ↵ManoloFLTK
moved" (#1191) This commit adds support of scenarios where a child window is moved while its parent is simultaneously modified.
2025-01-22Fix Fl_Table_Row inconsistencies, final part (#1187)Albrecht Schlosser
Adjust internal vector sizes before and after changing the rows() in the base class to avoid inconsisten sizes. Note that the crash reported by the OP of PR #1187 was caused by more than one issue, not only the one fixed here. Thanks for the original patch to the author, GitHub user 'basiliscos'.
2025-01-22Windows: replace "Arial" by "Microsoft Sans Serif" for the FL_HELVETICA ↵ManoloFLTK
font family Users who need the old behavior for strict backwards compatibility under Windows can load the previous (Arial) font at program startup with only a few lines of code: #ifdef _WIN32 // reset Windows fonts to pre-1.4.2 state Fl::set_font(FL_HELVETICA, " Arial"); Fl::set_font(FL_HELVETICA + 1, "BArial"); Fl::set_font(FL_HELVETICA + 2, "IArial"); Fl::set_font(FL_HELVETICA + 3, "PArial"); #endif
2025-01-22Remove incorrect use of Fl_Window::current() in ↵ManoloFLTK
Fl_Quartz_Image_Surface_Driver c'tor Fl_Window::current() can refer to a deleted window is some scenarios
2025-01-21fltk-config: reorder include dirs of bundled image libsAlbrecht Schlosser
1. prepend include dirs of bundled image libs and append Cairo include dirs and flags 2. remove forgotten debug statement from previous commit
2025-01-21fltk-config: fix "Check bundled image libraries in source tree"Albrecht Schlosser
Avoid adding a non-existent folder to include directories (-I) in `fltk-config --cxxflags` etc.
2025-01-21CMake: check INTERFACE_LINK_LIBRARIES for empty valueAlbrecht Schlosser
This is a safety for consistency. It doesn't really change the result but avoids "adding" an empty argument to a CMake list.
2025-01-20CMake: make "optional" dependencies 'PUBLIC' (#1173)Albrecht Schlosser
On FreeBSD some of the required header files (and libraries) are not in standard (known) locations, hence they wouldn't be found under certain circumstances. Making all dependencies 'PUBLIC' adds the needed include directories and link libraries to all builds. For details see GitHub Issue #1173 with title "FLUID compilation error on FreeBSD when FLTK_BACKEND_X11=ON"
2025-01-20Attempt to improve member function ↵ManoloFLTK
Fl_Wayland_Screen_Driver::insertion_point_location() This makes the IM aware of the cursor movement to the right after having committed text.
2025-01-19tedst/utf8: Change default font used under Windows for "Unicode Display Test"ManoloFLTK
The Windows doc at https://learn.microsoft.com/en-us/typography/font-list/arial-unicode-ms of the "Arial Unicode MS" font reads "The font was included with Office but not Windows. … We stopped servicing and updating Arial Unicode and no longer install it as part of Office." Using that font is therefore not the best choice. This commmit uses "Microsoft Sans Serif" instead available in all Windows versions since Windows 2000.
2025-01-18Make Fl_SVG_Graphics_Driver use the C locale when writing float values - cont'dManoloFLTK
2025-01-16MSYS2: Correctly detect ucrt64 environment (PR #1167)Albrecht Schlosser
This fix is different than the proposed PR. The PR will be closed and not merged. Closes #1167.
2025-01-16Improve and reorder Fl_Tabs documentationAlbrecht Schlosser
Note: this also removes the (not working) suggestion to add an invisible box to an Fl_Scroll-type child of Fl_Tabs.
2025-01-15Document issues with Fl_Scroll as children of Fl_Tabs (#1175)Albrecht Schlosser
Unfortunately this *appears* to be a new constraint caused by the great new features of Fl_Tabs like overflow handling etc. and fixing drawing issues in the tab area (since FLTK 1.4). However, this conflict has already been there in 1.3 but didn't cause visual artifacts in normal use.
2025-01-15Fix typos in documentation of Fl_TabsAlbrecht Schlosser
2025-01-14Fix return value of Fl_Table_Row::row_selected(int) (PR #1187)Albrecht Schlosser
As discussed in the context of PR #1187 the previous return value '-1' was misleading and undocumented. The docs mentioned only '1' and '0'. User code that used the return value as documented (like a `bool`) would make the wrong decision if the return value was '-1': true (selected) instead false (out of range). This commit fixes the code by doing what the docs define and clarifies the documentation. Further documentation improvements of Fl_Table (example code used a method that is not defined in Fl_Table) and of Fl_Table_Row are included as well. Doxygen docs of two methods of Fl_Table_Row moved to the .cxx file where they belong according to the CMP.
2025-01-11Repair incorrect path in #include directiveManoloFLTK
2025-01-11Make Fl_SVG_Graphics_Driver use the C locale when writing float valuesManoloFLTK
2025-01-11Remove unnecessary #include directiveManoloFLTK
2025-01-11 Fl_Text_Editor::wrap_mode(Fl_Text_Display::WRAP_AT_BOUNDS, 0) hurts ↵ManoloFLTK
scrolling (#1186)
2025-01-10Wayland platform: fix handling of key repeatsManoloFLTK
2025-01-10Fix Fl_{Wayland|Xlib}_{Copy|Image}_Surface_Driver::set_current()ManoloFLTK
Member function Fl_Cairo_Graphics_Driver::set_cairo() needs be called only to initialize the driver. Doing it also later undoes the effect of Fl_Widget_Surface::translate() if used when Fl_Surface_Device::pop_current() calls the overridden Fl_Surface_Device::set_current().
2025-01-08Make draw to image and draw to clipboard behave equally in X11 and WaylandManoloFLTK
2025-01-03Add Fl_Valuator destructor.Matthias Melcher
This is required by Swig to generate code for wrapping FLTK for Python and potentially other languages. It has no impact on the API or ABI.