summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2021-07-08macOS: Fl::add_timeout() must always create a new timer (#248)Albrecht Schlosser
The old version would reschedule an existing timer if a matching timer existed already which was unique to macOS. The new behavior is consistent on all platforms and allows to create multiple timer entries with the same callback and userdata.
2021-07-07macOS: Fix a timer inconsistency and prevent a crashAlbrecht Schlosser
Calling Fl::repeat_timeout() instead of Fl::add_timeout() to create a timer would crash on macOS but fall back to Fl::add_timeout() on Windows and Unix/Linux. Although this is documented as "undefined behavior" a crash should always be avoided and the fallback is now consistent on all major platforms. In the future this may be documented as the standard behavior.
2021-07-04Remove duplicate BOM check (#247)Albrecht Schlosser
Sorry for the noise, this was a "merge error". Also, fix a typo.
2021-07-03Fix svg image check (#247)Albrecht Schlosser
Thanks to @wcout for pointing out that "<svg\t" is a valid notation. The overall length check (>= 5) is left in place intentionally.
2021-07-03Check for valid length and simplify BOM check (#247)Albrecht Schlosser
2021-07-03Fix for issue #247 : loading SVG image with BOM.ManoloFLTK
2021-07-01Fix FL_MOUSEWHEEL event coordinates in subwindow (#210)Albrecht Schlosser
Issue #210: "Fl::event_x() & event_y() doesn't take into account embedded window's coords with Mouse wheel events" In fact the calculation of Fl::event_x() and Fl::event_y() used the wrong window coordinates if the event was sent to a subwindow.
2021-06-27Fix use of variable out-of-scope (PR #242)fire-eggs
2021-06-26Fix a potential memory leak (PR #241)Albrecht Schlosser
This is a hypothetical fix, since the condition `count == 0` may not be true although `doit` has been allocated. In practice this should not be possible since the same loop is executed twice in lines 463++ and 471++. But anyway, here it is...
2021-06-26Fix potential memory leak (#241)fire-eggs
Signed-off-by: Albrecht Schlosser <albrechts.fltk@online.de>
2021-06-26Fix "failure to call pclose" (#240)fire-eggs
2021-06-18Revert parts of and fix other 'constness' changes (#239, #181)Albrecht Schlosser
Some of the previous constness changes turned out to be incomplete, others had to be reverted because some other driver methods could not be made 'const' - particularly those calling open_display() to get the requested information.
2021-06-16Make non-const Fl_Screen_Driver methods const (#181)Albrecht Schlosser
As requested by issue #181: "Fl_Screen_Driver.H non-const functions should be const" Not all methods could be made 'const' because some screen related methods call init() internally.
2021-06-11Fix keyboard demo international keyboardsAlbrecht Schlosser
Fl::event_key() display needs to be converted to UTF-8 for keycodes outside the ASCII range (0xa0 - 0xff). Such keycodes can be found on international keyboards.
2021-06-10Reformat bundled lib 'makedepend' filesAlbrecht Schlosser
The new 'makedpend' format in the bundled libs is one line per dependency, sorted, like all the other makedepend files. libpng: add ARM platform files
2021-06-09Don't activate scaling shortcuts if platform doesn't support scaling.ManoloFLTK
2021-05-31Windows: Fix compiler warning: unused variableAlbrecht Schlosser
2021-05-31Windows: Fix compiler warning, simplify codeAlbrecht Schlosser
src/Fl_Native_File_Chooser_WIN32.cxx:190:10: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 190 | strncpy(wp2, string, n); | ~~~~~~~^~~~~~~~~~~~~~~~ Although there was no real problem with the code (the allocated buffer was large enough), the code was questionable and there was redundant code that could be simplified.
2021-05-31Windows platform: use GDI+ to antialias oblique lines and curves.ManoloFLTK
2021-05-28New virtual member function Fl_Graphics_Driver::colored_rectf().ManoloFLTK
2021-05-27 macOS: Avoid premature FL_RELEASE event at start of drag-n-drop operation.ManoloFLTK
This fixes this issue mentioned in fltk.general : https://www.fltk.org/newsgroups.php?s40623+gfltk.general+v40638+T
2021-05-26Clarify demo code and add comment with "translated" stringAlbrecht Schlosser
Add the example string in binary "latin1" (ISO-8859-1) encoding in a comment as clear text for reference (code is UTF-8 encoded).
2021-05-26Fix trailing whitespace and formattingAlbrecht Schlosser
2021-05-26Windows: fix fl_system() and fl_execvp() (STR 3438)Albrecht Schlosser
Use correct conversions to Windows "wide character" encoding and use the appropriate wide character functions.
2021-05-26X11: fix fl_clip_box() coordinates > 16-bit (STR 3134)Albrecht Schlosser
Pre-clip coordinates to 16-bit range before using X11 clipping functions because X11 supports only 16-bit int's.
2021-05-25Reimplement Fl_Group::delete_child(int) for Fl_ScrollAlbrecht Schlosser
2021-05-25Add virtual int Fl_Group::delete_child(int n) (STR 3218)Albrecht Schlosser
This is a convenience method that does range checking (index n), removes the child given by index n from the group and deletes it.
2021-05-21Update fluid tutorial on CubeView and demo codeAlbrecht Schlosser
Format code according to the CMP, add instructions on how to copy the code to the fluid tutorial, and update the tutorial with the current code of test/CubeView.h and test/CubeView.cxx.
2021-05-13Update README.macOS.md (minor fixes)Albrecht Schlosser
2021-05-13Refactor macOS bundle generation to avoid "quarantine"Albrecht Schlosser
macOS Big Sur 11.3 introduced a new "security feature" such that app bundles created from existing bundle templates in downloaded files (tar distibutions, expanded) could no longer be executed without unsetting the "quarantine" attribute. This commit fixes this by creating all bundles from scratch. Known *workaround* for older tarballs and snapshots: $ xattr -d -r com.apple.quarantine xxx.app
2021-05-08Include bitmap files rather than copying the source codeAlbrecht Schlosser
There's no need to blow up the source file by including the bitmap file literally in the source code. Use '#include' instead. Another benefit is that the original source file is referenced in the source code so it is not accidentally removed.
2021-05-08Rename 'srs.xbm' to its original name 'sorceress.xbm'Albrecht Schlosser
2021-05-07Update copyright in fluid bundle (macOS: Info.plist)Albrecht Schlosser
2021-05-07Suppress Visual Studio warnings in nanosvg codeAlbrecht Schlosser
- disable warning C4244 (conversion / data loss) - restore #pragma warning after nanosvg includes
2021-05-07Fix MSVC 2010 and older not finding round()Albrecht Schlosser
Actually we don't know about some newer MSVC versions, but current version MSVC 2019 works fine w/o defining round(). If other MSVC versions need this as well we can change the version test or add a compiler feature test to CMake (configure not required).
2021-05-06Fix Windows (Visual Studio) compiler warningsAlbrecht Schlosser
2021-05-06Add GitHub Actions Badge to README.mdAlbrecht Schlosser