summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2021-05-03Fix compiler warning on macOSAlbrecht Schlosser
Compiling drivers/Posix/Fl_Posix_System_Driver.cxx... drivers/Posix/Fl_Posix_System_Driver.cxx:176:14: warning: unused function 'quadruple_dlopen' [-Wunused-function]
2021-05-03Fix compiler warningAlbrecht Schlosser
Apple clang version 12.0.5 (clang-1205.0.22.9) Target: arm64-apple-darwin20.4.0 Warning appeared after upgrade to Xcode 12.5 in several files, example: In file included from Fl_Scroll.cxx:19: ../FL/Fl_Scroll.H:102:17: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage] typedef struct { ^ ScrollInfo ../FL/Fl_Scroll.H:104:5: note: type is not C-compatible due to this member declaration typedef struct { int x,y,w,h; } Fl_Region_XYWH; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../FL/Fl_Scroll.H:128:5: note: type is given name 'ScrollInfo' for linkage purposes by this typedef declaration } ScrollInfo; ^
2021-05-02Fix a type (comment only)Albrecht Schlosser
2021-04-30Enhance CMake build configuration summaryAlbrecht Schlosser
2021-04-30CMake: improve detection and configuration of image libsAlbrecht Schlosser
Also: fix old (pre 3.13) link_directories() usage
2021-04-30Fix build with Cairo for CMake < 3.13Albrecht Schlosser
target_link_directories() was introduced in CMake 3.13
2021-04-29Document how to build universal apps for macOSAlbrecht Schlosser
2021-04-29Cleaner access to Fl_Gl_Window_Driver objects.ManoloFLTK
2021-04-28Fix "Fl_Shared_Image: use of unitialized data" (#216)Albrecht Schlosser
- fix issue as proposed - fix more potential access to uninitialized data issues - document Fl_Shared_Image::add_handler() - document typedef Fl_Shared_Image::Fl_Shared_Handler()
2021-04-28Fix version number in doxygen docsAlbrecht Schlosser
... when generated with configure/make.
2021-04-27Slightly simplify gl_texture_fifo::compute_texture()ManoloFLTK
The font size is set to the value necessary for the GL scene before computing the string width. Virtual Fl_Gl_Window_Driver::effective_size() becomes unnecessary.
2021-04-26Update copyright year in documentation footerAlbrecht Schlosser
2021-04-26CMake: Document FLTKConfig.cmake and set FLTK_INCLUDE_DIRAlbrecht Schlosser
Some of the output variables had not been documented, and the "new" variable for FLTK include directories is 'FLTK_INCLUDE_DIRS' (plural) rather than 'FLTK_INCLUDE_DIR'. FLTK_INCLUDE_DIR is now also set for compatibility with FindFLTK.cmake supplied by CMake.
2021-04-26Avoid "Bogus FL_MOVE/FL_DRAG events" (#76)Albrecht Schlosser
Fix sending bogus events if CONSOLIDATE_MOTION is on.
2021-04-22Fix handle_events demo build w/o OpenGLAlbrecht Schlosser
test/handle_events.cxx can optionally be built with an Fl_Gl_Window, but this doesn't work if OpenGL support (libfltk_gl) is disabled.
2021-04-19Replace list of excluded platforms by name of chosen platform.ManoloFLTK
Since FL/platform.H defines USE_X11 for the X11 platform, it's better to target the X11 platform by #include <FL/platform.H> #if USE_X11 rather than by #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) that would have to grow with future platforms.
2021-04-16Fix potential buffer overrun (WIN32 only)Albrecht Schlosser
2021-04-16Minor simplification in Fl_Gl_Window_Driver::capture_gl_rectangle()ManoloFLTK
2021-04-14Improve documentation (test/editor) (#219)Albrecht Schlosser
Add missing declaration, update more declarations.
2021-04-14Fix Fl_Cairo_Graphics_Driver::rect and Fl_Cairo_Graphics_Driver::rectfManoloFLTK
2021-04-13Update README.Unix.txtDaniel G
Replace svn instructions by git instructions
2021-04-13Update Fl_WinAPI_Window_Driver.HDaniel G
Fix copy paste error.
2021-04-11Fix CMake install procedure (#212)Albrecht Schlosser
Only install header files to the FL/ include directory.
2021-04-08Fix CMake warningAlbrecht Schlosser
2021-04-08Fix macOS bundle: set missing fields for test appsAlbrecht Schlosser
- MACOSX_BUNDLE_BUNDLE_NAME: CFBundleName - MACOSX_BUNDLE_GUI_IDENTIFIER: CFBundleIdentifier test/demo.cxx: Remove confusing quotes from demo variable output.
2021-04-07Make Fl_Input::handle_key() protected (#203)Albrecht Schlosser
... as requested in this comment: https://github.com/fltk/fltk/issues/211#issuecomment-814235771
2021-04-07Remove static variable, fix gcc warning [-Wclobbered] (#203)Albrecht Schlosser
PR #203 "Multithread fix for PNG loading" includes a suggested fix that moves the variable fp to the Fl_PNG_Image structure. This commit fixes the threading issue by allocating the variable fp with new, avoiding the [-Wclobbered] warning w/o using a static var. The same issue is now also fixed in Fl_JPEG_Image.
2021-04-04Merge remote-tracking branch 'refs/remotes/origin/master'ManoloFLTK
2021-04-04Fix for issue #209: Gtk-CRITICAL messages from native file chooserManoloFLTK
Thanks to K.R. for the fix.
2021-04-04Fix "Gtk-CRITICAL messages from native file chooser" (#209)Albrecht Schlosser
See GitHub Issue #209: https://github.com/fltk/fltk/issues/209 Warning was: "Gtk-CRITICAL **: ... gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed Close #209
2021-03-31Move the X11-specific part of GTK native file chooser to Fl_X11_System_DriverManoloFLTK
2021-03-31Fl_X11_System_Driver::probe_for_GTK() is now ↵ManoloFLTK
Fl_Posix_System_Driver::probe_for_GTK()
2021-03-31Move quadruple_dlopen() to Fl_Posix_System_Driver.cxx where it's used.ManoloFLTK
2021-03-31Move probe_for_GTK() to class Fl_Posix_System_Driver from Fl_X11_System_Driver.ManoloFLTK
Similarly move dlopen_or_dlsym(). This move is because GTK is not X11-specific.
2021-03-27Add guard against multiple inclusion of header file.ManoloFLTK
2021-03-26Remove X11-specific code from platform-independent Fl_PostScript.cxxManoloFLTK
2021-03-23Better fix for issue #206.Greg Ercolano
Albrecht caught a problem with my strncat use (see comments for 12d8da9c). I noticed we have fl_strlcpy() and fl_strlcat() which is what was really needed here.
2021-03-23Solve issue #206 warning.Greg Ercolano
2021-03-23Optimization for pixel loop.Greg Ercolano
As per erco's comments on fltk.coredev, Mar 21 2021 in thread Subject: Re: 1.4 build failing on OSX for me
2021-03-22Remove unused #include statementsAlbrecht Schlosser
Cairo is not used in this file, math.h is not necessary, and stdio.h is only required if USE_PANGO is false.
2021-03-22Solve issue #204, wrong default for labelfgcolor()Greg Ercolano
FL_BLACK changed to FL_FOREGROUND_COLOR as per docs.
2021-03-22Add missing include file stdlib.h for abs(int)Albrecht Schlosser
This file was included (in math.h or elsewhere) on Linux and latest macOS versions but maybe not in earlier macOS versions or with other configuration options.