Commit Graph

11809 Commits

Author SHA1 Message Date
Albrecht Schlosser
12ea6a0288 Enable building the CubeView demo w/o requiring '<config.h>'
This allows to build the CubeView demo from the unmodified FLTK sources
w/o having to provide a 'config.h' file by defining HAVE_GL=1 on the
compiler commandline. See also comment in test/CubeView.h.

test/CubeMain.cxx: don't include <config.h> at all (not needed)

test/CubeView.h: #include <config.h> only if HAVE_GL is not defined
2024-11-29 16:19:22 +01:00
dannye
404411ea68
Fix changed flag for radio buttons (#1146) 2024-11-28 23:14:07 +01:00
ManoloFLTK
0cd048a7a8 Improve procedure to construct best link command for macOS platform
As discussed between Matthias, Albrecht and Manolo, the best procedure is
- use MAC_OS_X_VERSION_MAX_ALLOWED but not __MAC_OS_X_VERSION_MAX_ALLOWED;
- compile helper file CMake /macOSMaxAllowed.c to detect whether the SDK in use
is in version above a given threshold version number;
- based upon the result of this check, decide to weakly link or not a given framework.
2024-11-28 14:59:32 +01:00
ManoloFLTK
be6966bda6 Add missing FL_EXPORT qualifier 2024-11-27 08:38:37 +01:00
ManoloFLTK
3633b342fd Restore pixmap drawing under X11-noCairo broken by 0952d59 2024-11-27 08:23:35 +01:00
ManoloFLTK
95fc60bd8c Restore building with configure --disable-print (#1147) 2024-11-27 00:08:06 +01:00
Albrecht Schlosser
9bac964f85 Fix Makefile example in chapter "FLTK Basics"
- move linker rule from 'all' to '$(TARGET)'
- remove '$(TARGET) $(OBJS)' from rule 'clean'

The 'clean' rule required to build everything before it was deleted
which was obviously not intended.
2024-11-26 16:12:07 +01:00
ManoloFLTK
2430cb1f42 Fix: Graphical glitches on 101 DPI screen (#1138) 2024-11-25 13:34:14 +01:00
dannye
edcf49c63a Windows: Fix rescale bug while window is fullscreen
Possible via the Win+Shift+Left/Right keyboard shortcuts
2024-11-25 11:05:06 +01:00
dannye
f60af127de Windows: Fix rescale bug while window is maximized 2024-11-25 11:05:06 +01:00
Albrecht Schlosser
403981a293 Fix compiler warning (g++ 14) [-Wstringop-overflow]
New compiler warning detected by g++ 14.2.0 building with CMake
  in Release mode. This *temporary* fix suppresses the warning but uses
  even larger fixed size buffers.

Todo: these nasty warnings caused by using fixed buffer sizes should
  be removed by using std::string in FLTK 1.5.0.
2024-11-24 19:53:23 +01:00
Albrecht Schlosser
d3d051483a Improve output of 'fltk-options -h' and '-L*'
This commit includes minor code formatting w/o semantic changes
and fixes some typos.
2024-11-24 16:51:35 +01:00
Albrecht Schlosser
801125b9a4 Increase clipping stack size (#1139) 2024-11-23 16:01:59 +01:00
Matthias Melcher
cef968e8a0 FLUID: avoiding integer overflow warning. 2024-11-21 09:41:17 +01:00
Matthias Melcher
d767b8ceb8 FLUID: autodoc image memory allocation fix. 2024-11-21 01:30:28 +01:00
ManoloFLTK
4258aca717 Fix: Can't control scale of Fl_Copy_Surface dimensions on Linux (#1135) 2024-11-20 15:36:49 +01:00
ManoloFLTK
0952d594f8 Fix fl_draw_image sometimes crashes when window is scaled - cont'd (#1134) 2024-11-20 10:18:26 +01:00
ManoloFLTK
1f05a0df44 Fix fl_draw_image sometimes crashes when window is scaled - cont'd (#1134) 2024-11-20 08:01:40 +01:00
Matthias Melcher
6df2219aa0 FLUID: fixing autodocs file leak and memory leak 2024-11-19 23:27:03 +01:00
ManoloFLTK
c6d480352b Add 2 other missing FL_EXPORT qualifiers 2024-11-19 15:47:23 +01:00
ManoloFLTK
e6d18cf713 Add 2 missing FL_EXPORT qualifiers 2024-11-19 15:37:05 +01:00
ManoloFLTK
619677b75c Fix fl_draw_image sometimes crashes when window is scaled (#1134) 2024-11-19 15:26:47 +01:00
ManoloFLTK
180b4bad2e Fix: Fullscreen regression between release-1.4.0rc2 and release-1.4.0rc3 on macOS( #1129) 2024-11-18 18:01:57 +01:00
ManoloFLTK
2cd0ec7e33 Fix: Rounding issues with Fl_RGB_Image::draw() + window scaling (#1128) 2024-11-18 17:20:36 +01:00
Albrecht Schlosser
d547e19567 MSVC: Fix array allocation in test/fltk-versions (#1131) 2024-11-18 02:08:56 +01:00
Albrecht Schlosser
3a3e73adad Update ANNOUNCEMENT for release 1.4.0 2024-11-17 21:36:26 +01:00
Albrecht Schlosser
ed0744fc50 Update 'CHANGES.txt' for release 1.4.0 2024-11-17 21:14:21 +01:00
Albrecht Schlosser
6c6f6b7dd9 Finish release 1.4.0
1) Improve and clarify documentation:
 - update, reformat, and reorder parts of CREDITS.txt
 - make sure that documentation appears in doxygen docs
 - add '\since 1.4.0' to documentation of new methods and functions
 - remove doxygen's '\brief' where not required (we're using
   JAVADOC_AUTOBRIEF = YES)
 - clarify screen scaling, scaling factor, and related stuff
- add more info about backwards compatibility for X11 specific code

2) Update dependencies
2024-11-17 20:01:46 +01:00
Albrecht Schlosser
7b9af35847 Improve 'test/fltk-versions' demo program
- add code to get the platform and backend
- display platform and backend on screen
- improve and simplify layout (using Fl_Grid)
- add version check indicator
2024-11-17 18:12:45 +01:00
Matthias Melcher
114fb66cd3 Fixes Alt-modifier handling in Fl_Shorcut_Button on macOS 2024-11-15 20:27:07 +01:00
Albrecht Schlosser
176b0a06a3 Update CREDITS.txt 2024-11-13 15:30:55 +01:00
ManoloFLTK
53bedf1d34 Fix Cairo: Rounding issues with Fl_RGB_Image::draw() + Fl_Copy_Surface (#1124) 2024-11-13 09:16:41 +01:00
dannye
29531fa421 Windows: Fix flicker/animation when transitioning from fullscreen to maximized 2024-11-12 11:14:26 +01:00
ManoloFLTK
2337214e4e Fix for Windows and X11: Rounding issues with Fl_RGB_Image::draw() (#1120) 2024-11-12 10:56:19 +01:00
ManoloFLTK
0d4c8c8534 Fix Keyboard shortcut (alt + letter) does not work in input widget-Windows (#1122) 2024-11-12 09:09:10 +01:00
Albrecht Schlosser
dc2c53333c Revert gtk+ specific "chevron style" arrow drawing (#1117)
After comparison with older versions I realized that the gtk+ specific
"chevron style" was previously used *exclusively* in Fl_Scrollbar.
Unfortunately I had picked this style as template for all arrows.

GitHub Issue #1117 requested to add an option for users to change the
arrow style but after my investigation I decided to use the "old style"
(triangles) for all schemes (except "oxy" that has its own drawing
methods).

**IF** it turned out that we need the gtk specific drawing for scrollbars
we could easily reactivate the "chevron style" by adding yet another
arrow type - but I hope this is not necessary.
2024-11-09 21:57:27 +01:00
ManoloFLTK
018c3b19f5 Fix Windows: fullscreen_off does not correctly preserve window size (#1116) 2024-11-09 15:35:06 +01:00
ManoloFLTK
85c23539fd Wayland: protect against rounding errors in copy_region() 2024-11-09 13:01:45 +01:00
Albrecht Schlosser
5d0fcc5f15 Finish Release Candidate 1.4.0 rc3 (release-1.4.0rc3) 2024-11-08 17:40:04 +01:00
ManoloFLTK
55db651a96 Fix: X11: test/gl_overlay stale overlay rendering (#1111) 2024-11-08 12:25:49 +01:00
ManoloFLTK
c46a92809e Fix macOS Very minor high DPI rounding issue with fl_rect (#1113) 2024-11-08 11:07:32 +01:00
ManoloFLTK
e15cd9d5bb Fix: fl_draw_image() with horizontal flip reads out of bounds (#1112) 2024-11-08 10:28:27 +01:00
ManoloFLTK
3fbbce0654 Slightly improve member function Fl_Wayland_Graphics_Driver::copy_offscreen() 2024-11-08 09:46:35 +01:00
ManoloFLTK
82e0e859ee Fix X11: test/checkers drawing artifacts when window is scaled (#1109) 2024-11-08 09:14:29 +01:00
ManoloFLTK
8f987ce8bd Fix X11: test/curve "points" mode not drawn correctly (#1110) 2024-11-07 19:33:43 +01:00
Albrecht Schlosser
87527017b2 MacOS: Fix build folder for detection of SDK version (#1103)
Sorry for the noise...
2024-11-05 16:53:12 +01:00
Albrecht Schlosser
d5c0e215a4 MacOS: Improve detection of SDK version (#1103)
CMake/macOSMaxAllowed.c:
  avoid C compiler warning in test code

CMake/setup.cmake, technical changes:
- optimization: test SDK 15.0.0 first to avoid unnecessary test if true
- use a function instead of a macro
- use different names for (cached) result variables
- use prefix FLTK_ for cache variables

Note: the cache variables are marked 'internal': you may need to grep
  CMakeCache.txt to view them.
2024-11-05 16:09:39 +01:00
Matthias Melcher
a77cc0cb35 MacOS version check using try_compile: #1103
This change will work as well when cross-compiling.
2024-11-04 22:35:49 +01:00
Matthias Melcher
71a61d9cbf
Using try_run to get __MAC_OS_X_VERSION_MAX_ALLOWED (#1105) 2024-11-04 20:26:49 +01:00
ManoloFLTK
afe87de013 Correctly add weak-linked frameworks for increasingly high macOS versions 2024-11-04 13:06:36 +01:00