summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2021-03-21Windows: fix fl_filename_isdir()Albrecht Schlosser
- convert filename from UTF-8 to "Windows wide chars" - use GetFileAttributesW() instead of _stat()
2021-03-21Hide window in quit callback in wizard-simple exampleAlbrecht Schlosser
2021-03-21Fix menu-with-images example w/o using exit()Albrecht Schlosser
Use window->hide() in quit callback instead.
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2021-03-19Added docs for public fl_vsnprintf() (STR #3413)Greg Ercolano
Applied vsnprintf_v2.patch from STR#3413 which documents the previously undocumented function, so that it shows up here in the doxygen docs: Files -> File List -> vsnprintf.c -> fl_vsnprintf() This commit does not solve STR #3413, just adds the recommended documentation for fl_vsnprintf(). Other functions in src/vsnprintf.c could use docs too. See the bottom of comment #5 in the STR for recommendations to fully solve.
2021-03-19Add fluid callback demo program to examples folderAlbrecht Schlosser
This example demonstrates how to build an entire program using fluid and how to add static and virtual class methods as callbacks.
2021-03-18Added chart-simple exampleGreg Ercolano
2021-03-18Fix stack corruption when loading GIFfire-eggs
2021-03-15Partial fix for issue #188.ManoloFLTK
This fixes the inconsistency created by the possibility to change img->w() and img->h() values. The fix is to use img->data_w() and img->data_h() that have constant values.
2021-03-15Fix Linux build with --enable-pangoAlbrecht Schlosser
2021-03-15Create class Fl_Cairo_Graphics_Driver.ManoloFLTK
That class is extracted from inside Fl_PostScript_Graphics_Driver and might become handy in the future.
2021-03-15Class Fl_PostScript_Graphics_Driver: better separation of what varies with ↵ManoloFLTK
USE_PANGO
2021-03-13Fix fl_endpoints() for macOS platform that was not effective.ManoloFLTK
2021-03-13Fast pango (#201)ManoloFLTK
* Cache single unicode character widths under Xft+Pango
2021-03-11Unification of scaled coordinate calculations in class ↵ManoloFLTK
Fl_Scalable_Graphics_Driver Most coordinate calculations are done with the new inline function int Fl_Scalable_Graphics_Driver::floor(int coord) that is used by both the Windows and X11 platforms.
2021-03-11Improve Fl_Help_View test fileAlbrecht Schlosser
- add DOCTYPE, <head> and <body> statements - make the file more standards conformant - update OL tests, add nested OL/UL test - add 'alt' tags to image refs Note: the 'NAME' tag is obsolete and should be replaced with 'ID' but Fl_Help_View does not parse 'ID' tags (yet).
2021-03-07autoconf: fix PNG buildAlbrecht Schlosser
configure didn't export HAVE_PNG_H and HAVE_LIBPNG_H to config.h
2021-03-02Windows platform: accurate drawing area of RGB images with scaled GUI.ManoloFLTK
2021-03-02X11 platform: Accurately control RGB image drawing with GUI scaling.ManoloFLTK
2021-03-01Remove duplicated code between derived classes of Fl_Graphics_Driver - cont'd.ManoloFLTK
2021-03-01Remove duplicated code between derived classes of Fl_Graphics_Driver.ManoloFLTK