Commit Graph

6931 Commits

Author SHA1 Message Date
Albrecht Schlosser
f34719851e Fl_File_Chooser: set insert position to end of string (#1004)
... after filename "expansion" with current directory.

Backported from 1.4: commit ecb3c9c6fc.
Code modified to work with 1.3.x.

Updated CHANGES.
2024-07-04 16:29:59 +02:00
ManoloFLTK
20e2879ea8 macOS: let fullscreen windows have access to the system menubar 2024-05-22 10:37:18 +02:00
Albrecht Schlosser
f964732c87 Update bundled libraries
- Update zlib from 1.3 to 1.3.1
- Update libjpeg from jpeg-9e to jpeg-9f
- Update libpng from 1.6.40 to 1.6.43
2024-05-14 15:57:39 +02:00
Albrecht Schlosser
908d900794 Bump version numbers from 1.3.9 to 1.3.10 2024-05-14 15:57:04 +02:00
Matthias Melcher
20138be66b macOS: Fix color component mixup in gl_draw text rendering #947 2024-04-05 18:02:39 +02:00
ManoloFLTK
807d205a3c Fix "FLTK on NetBSD very slow on X11 with Unicode locale" (#935) 2024-03-18 16:56:44 +01:00
Albrecht Schlosser
4f787cc1f0 Fix a bunch of compiler warnings (backported from 'master')
Many warnings were benign, some were false positives, but better
fix a warning than miss an error.

test/fractals.cxx: backported from 1.4
2024-03-16 13:53:01 +01:00
Albrecht Schlosser
25d7ed7e0d Add missing FL_EXPORT of class Fl_XFont_On_Demand (#922) 2024-03-03 14:00:19 +01:00
Matthias Melcher
84ecb32c98 Fix OpenGL context caching on macOS (#737) 2024-01-30 15:51:37 +01:00
Matthias Melcher
89133cf1e1 Fix shared image handling in file chooser (#887) 2024-01-27 17:39:13 +01:00
Matthias Melcher
548fe016d3 Fix crash in Fl_Preferences for deformed group name (#891) 2024-01-19 11:50:34 +01:00
Matthias Melcher
b2dc8217a1 #877: Fixes Fl_Shared_IMage refcount 2024-01-14 16:56:01 +01:00
Albrecht Schlosser
a66273e726 Raise CMake minimum required version to 3.15 and more
- ensure that all required CMake policies are set to 3.15
- enhance CMake status report (add bundled library types)
- add erco's CMake instructions for building with NMake
- improve HTML docs (remove "custom" HTML footer)
- update ANNOUNCEMENT
2023-12-09 14:58:40 +01:00
Albrecht Schlosser
3c25c0a483 Documentation: remove dark color on title page and ...
add "HTML_COLORSTYLE = TOGGLE" so the documentation user can toggle
  dark and light display mode.

Enable search engine.
2023-12-08 19:36:21 +01:00
Albrecht Schlosser
74187844a2 CMake/MSVC: remove confusing recommendation to rerun CMake
... if GL or locale headers are not found. These headers will be
  resolved by the Visual Studio SDK (backported from 1.4).

Also improve finding the GLEW library on Windows (named 'glew32')
  (backported from 1.4).
2023-12-07 19:49:31 +01:00
Albrecht Schlosser
c17d42c7e7 Fix compiler warnings, backported from 1.4 (master)
Also update CHANGES file.

The compiler warnings were issued by MinGW with gcc 9.2.0.

Note: There are lots of compiler warnings left when building with
  Visual Studio and/or NMake but these will not be fixed in 1.3.9.
  All warnings have been fixed in 1.4.0 (current git 'master').
2023-12-07 19:32:51 +01:00
ManoloFLTK
de55cd522a Remove the -mwindows argument from CFLAGS and CXXFLAGS 2023-12-07 08:42:01 +01:00
ManoloFLTK
c59c400a76 configure.ac: make sure local-png and local-zlib always run together 2023-12-07 08:16:42 +01:00
ManoloFLTK
788523be6f Remove CMake OPTION_CREATE_ANDROID_STUDIO_IDE 2023-12-06 17:52:58 +01:00
ManoloFLTK
115a1cb5c8 Remove inappropriate Cmake OPTION_USE_SVG 2023-12-06 17:49:32 +01:00
Matthias Melcher
783d50e6b1 #188: Fixes reference count for Fl_Shared_Image 2023-12-06 16:27:10 +01:00
ManoloFLTK
f74c144f68 Mention removal of OPTION_APPLE_X11 and --enable-x11 under macOS 2023-12-06 16:18:48 +01:00
ManoloFLTK
8b35bd2d08 Remove OPTION_APPLE_X11 CMake option 2023-12-06 15:58:15 +01:00
ManoloFLTK
5b56596df7 configure+macOS: enforce local zlib when local libpng is active 2023-12-06 15:37:04 +01:00
ManoloFLTK
82cc1e4b5f configure: remove support of --enable-x11 under macOS
This support becomes very difficult with recent macOS versions for the
approach used in 1.3 based on undefining __APPLE__.
[In contrast, the approach used in 1.4 that doesn't mess with __APPLE__
is still compatible with recent macOS versions].
2023-12-06 15:17:22 +01:00
ManoloFLTK
a4789d66c4 Remove obsolete Doxygen parameters 2023-12-06 15:05:16 +01:00
ManoloFLTK
b641d378c2 Remove unused variables compilation warnings under macOS 2023-12-06 14:59:47 +01:00
Matthias Melcher
f655a4d939 #188: Fixes search for Fl_SHared_Image original 2023-12-06 14:29:32 +01:00
Albrecht Schlosser
3846f23d41 Update png library (formatting, CMake)
This is a minor tweak.
2023-12-05 20:28:31 +01:00
Albrecht Schlosser
6bd3e83b00 Add missing files for bundled image libraries 2023-12-05 20:09:54 +01:00
Albrecht Schlosser
59dbcd5621 Update CHANGES, README, README.CMake.txt, support files
... and documentation

- makesrcdist:
  - reflect changes in fltk.spec.in
  - create fltk_git_revision.dat in source distribution
2023-12-05 18:37:56 +01:00
Albrecht Schlosser
cc91cfaac6 Update bundled image libraries and zlib to current versions
For details see README.bundled-libs.txt
2023-12-05 18:28:28 +01:00
Albrecht Schlosser
7c3489061e Fix several compiler warnings 2023-12-04 17:40:31 +01:00
Albrecht Schlosser
5a5baca1e2 Bump version numbers, prepare release 1.3.9
Still to do: update bundled libs, maybe more.
2023-12-02 22:36:53 +01:00
Albrecht Schlosser
fc6675aa87 Fix doxygen warnings 2023-12-02 21:38:15 +01:00
Albrecht Schlosser
84c9432d2a Fix "gtk+ rendering" (GitHub Issue #443)
This commit is a minimal fix for issue #443.

A more complete fix is in Git 'master', i.e. in FLTK 1.4.0.
2023-12-02 19:55:27 +01:00
ManoloFLTK
1b5db5519d Add support for macOS Sonoma 14 2023-10-25 11:29:07 +02:00
Albrecht Schlosser
7fb3ca2c3a Fix stack buffer overflow found by address sanitizer
This bug was only in some extra test code and only read access.
However, it should be fixed anyway.
2023-09-22 13:02:19 +02:00
Albrecht Schlosser
ea78943e86 Remove unused variable, fix "type issue" (#445, part 2)
This commit removes an unused variable as suggested in the discussion
of issue #445: "type issue in fluid/ExternalCodeEditor_WIN32.cxx"

Backported from 'master', b5b88d5f0d

Note: this "type issue" made the build fail on Windows with current
  MSYS2 (gcc 13.1.0).
2023-06-10 18:30:22 +02:00
Albrecht Schlosser
390f530abb Fix another compiler warning (#693)
Backported from 1.4.0.
2023-03-04 18:32:02 +01:00
Albrecht Schlosser
66b0935ed9 Fix compiler warning as pointed out in PR #693
This PR has been closed by its OP.
2023-03-04 18:27:03 +01:00
Albrecht Schlosser
53801fbf74 Backport warning fixes from 1.4.0 in src/fl_draw.cxx (#693)
- update header comment and copyright year
- add casts to fix compiler warnings
- fix "use after free" warning
- remove dead code
- reformat another unrelated statement
2023-03-04 18:18:49 +01:00
Albrecht Schlosser
2fddbaea0f Windows: #define WIN32 if not defined by user
FLTK 1.3.x code relies on WIN32 being defined (rather than _WIN32).

This commit defines WIN32 on Windows builds unless Cygwin (__CYGWIN__)
is used to avoid the common user error to "forget" to define WIN32 on
the commandline or in the build system (e.g. Visual Studio).
2023-02-28 10:17:07 +01:00
ManoloFLTK
4e9ed130df Fix "Focus is lost leaving full screen on macOS 13" (#608) 2022-12-30 18:24:11 +01:00
ManoloFLTK
82399fab9e Add support of macOS Ventura 13.0 2022-11-13 08:23:34 +01:00
Albrecht Schlosser
0695e62ce8 Fix compilation error with Visual Studio 2022
This old code (unchanged since 1998) wouldn't compile with the current
version of Visual Studio 2022.

Fix backported from 1.4.0 (c4bb4e192e).
Original commit by Matthias Melcher.
2022-11-11 00:49:21 +01:00
Albrecht Schlosser
40b82358ed Fix crash if a program exits before it opens a window (STR 3484).
This crash and the fix are Windows specific.

Backported from master (1.4.0), commit 339ba4c8b3 (Aug 6, 2018).
2022-08-22 15:37:32 +02:00
ManoloFLTK
df2b94bfa4 Issue #469: Fl_Sys_Menu_Bar menu item shortcuts using Escape or Tab do not work on Mac 2022-07-28 08:22:20 +02:00
Albrecht Schlosser
8ae8370dcf X11: Suppress compiler warnings when using gcc or clang
Suppress warning [-Wdeprecated-declarations] regarding function
  XKeycodeToKeysym()

Backported from master branch.

Update 'CHANGES' for a potential release 1.3.9
2022-07-22 18:03:23 +02:00
Albrecht Schlosser
8b5da69d53 Backport X11 INCR protocol fixes from 1.4.0 (issue #451)
Reading large selections via X11 INCR protocol (data sent by other
processes) could cause invalid write access and eventually segfaults.
For more information see GitHub issue #451 and these commits in
FLTK 1.4 (master branch):
 - c555629162
 - ef72df0dc7

This commit fixes the main issues when reading large selections via
INCR protocol but does not add functionality to *write* large
selections via INCR protocol.
2022-07-22 17:47:08 +02:00