Commit Graph

12046 Commits

Author SHA1 Message Date
Matthias Melcher
0b320b1297 Fix Fl_Menu_Item::measure width calculation (#1164)
Fl_Menu_Item::measure did not take the gap between a possible
checkbox and the label text into consideration.
2024-12-10 21:04:53 +01:00
Matthias Melcher
18a7a392a8 fluid: alternative version format 2024-12-10 01:35:44 +01:00
Matthias Melcher
9a80eeccb4 FLUID: command line argument -v shows fltk version at build time 2024-12-10 01:35:44 +01:00
Albrecht Schlosser
eb4d8d4957 Update more fluid and generated files
... after output of trailing whitespace has been fixed.
2024-12-09 22:41:45 +01:00
dannye
4a017e8a2a
Fix inconsistencies with Tab/Backspace handling in menus (#1157) 2024-12-09 22:18:37 +01:00
Matthias Melcher
ead9078bc3 FLUID: avoid trailing spaces in empty comment lines (#1161) 2024-12-09 21:53:32 +01:00
Albrecht Schlosser
fe8177ea2c Update Fluid (.fl) files for release 1.4.1 2024-12-09 20:46:01 +01:00
Albrecht Schlosser
99a6286288 Bump version numbers for release 1.4.1
To do: update CHANGES.txt with real info.
2024-12-09 20:46:01 +01:00
Matthias Melcher
05ee86fe57 Fixes triggering callback for inactive menu items (#1159)
The old code would trigger a callback when hovering the
mouse of an inactive item and pressing Return.
2024-12-09 19:57:23 +01:00
ManoloFLTK
5af4108169 Fix: Hang/Infinite loop on submenu with all inactive/invisible items (#1158) 2024-12-09 10:52:55 +01:00
ManoloFLTK
80c94ebfdf Fix: Mouse hover+Enter key selects inactive menu items (#1159) 2024-12-09 09:42:57 +01:00
ManoloFLTK
c82165cb07 No need to link to libgtk when using package libdecor-0-dev 2024-12-09 09:21:24 +01:00
Albrecht Schlosser
5ff42dd37a Update README.Windows.txt
- update FLTK version to "1.x" or "1.x.y"
- update and verify included links
- note that MinGW download links could not be verified
- add MSYS2 / MinGW-w64
2024-12-07 19:12:35 +01:00
Matthias Melcher
d1ba7fbf50 Giving access to some Fl_Text_Display member variables (#1153)
And typos in FLUID source code docs.
2024-12-07 17:31:14 +01:00
Albrecht Schlosser
c87e5c755d Update build instructions in README.Unix.txt (#67)
These build instructions are as up-to-date as possible although
there are still references to FLTK 1.3 (e.g. under NetBSD).

Closes #67.
2024-12-07 16:17:06 +01:00
Matthias Melcher
e24de6f89c glpuzzle: smoother animation at 72fps 2024-12-06 13:25:13 +01:00
Matthias Melcher
c61e3f63f6 glpuzzle: fixes timer and trackball max speed
Using 50fps instead of maximum render speed.
Trackball limited to non-head-spinning speeds.
2024-12-06 13:21:28 +01:00
ManoloFLTK
56756b41c2 Remove unnecessary friend declaration 2024-12-06 10:03:14 +01:00
dannye
85f5887625
Fix button down state when triggered by shortcut (#1145)
The visual feedback is really important. I was not aware that my patch suppressed that. And for the state values, I find it best to get back to what 1.3 did at this point. `value` is essential for check boxes and radio and toggle buttons. On push buttons, it has really not much of a meaning.
2024-12-05 23:49:49 +01:00
ManoloFLTK
4317f6a15f Update bundled libpng to version 1.6.44 2024-12-05 17:35:57 +01:00
Albrecht Schlosser
ff161187e7 Improve timer statistics in test/cube demo
These timer statistics are useful to see the interaction of OpenGL
drawing and FLTK timers (Fl::add_timer + Fl::repeat_timer).
2024-12-04 16:42:53 +01:00
Matthias Melcher
fe8a94d236 Fixes warning in cube.cxx. 2024-12-04 16:13:07 +01:00
Matthias Melcher
e18926ec76 FLUID: Fixes more places to clear cached pointers. 2024-12-04 16:05:39 +01:00
Matthias Melcher
b315422a37 FLUID: clearing caches browser values (#1152) 2024-12-04 15:44:39 +01:00
Matthias Melcher
fcae10e296 FLUID: Fixes default settings tab. 2024-12-04 14:49:14 +01:00
Matthias Melcher
7d964d92ae FLUID: minor improvemnets to buffer handling (#1152)
The described crash can not be reproduced. The changes
improve the stability of the call that causes the crash.
2024-12-04 14:22:21 +01:00
Matthias Melcher
8df4f8e398 FLUID: avoid generating undo un spurious relayout events, #1152 2024-12-03 20:37:28 +01:00
ManoloFLTK
167dba8817 Fi: Building with FLTK_BUILD_GL=0 fails on systems without opengl installed (#1151) 2024-12-03 17:12:49 +01:00
ManoloFLTK
edd680395f Documentation only: add details about fl_override_scale() and clip. 2024-12-03 15:38:46 +01:00
ManoloFLTK
e9ea17736b Fix Drawing bugs on Windows at very large scales (#1144) - cont'd 2024-12-03 15:38:46 +01:00
Matthias Melcher
a234453443 Clarify use of Fl_Tabs::clieant_area() 2024-12-03 11:59:13 +01:00
ManoloFLTK
8f8533c9e8 Add comment linking source code to related information in issue #1149 2024-12-02 19:10:20 +01:00
ManoloFLTK
981aa8c2e7 Fix: Drawing bugs on Windows at very large scales (#1144) 2024-12-02 17:46:49 +01:00
ManoloFLTK
9a7f4bdfce Document that function fl_scroll() doesn't work OK with non integral scaling factors
and explain how to get correct results.
2024-12-02 12:04:24 +01:00
ManoloFLTK
557a5e4fd0 Fix Fl_Scroll with real *_BOX draws over scrollbars at non-default scales (#1149) 2024-12-02 08:48:05 +01:00
Matthias Melcher
13bb611b4e FLUID: Fixing Project Modflags when adding shell commands. 2024-12-01 16:44:04 +01:00
Albrecht Schlosser
5160567728 Use a constant frame rate (25 fps) in test/cube demo
The old version was "synchronized" by calling Fl::check() in a loop
which resulted in the highest speed possible on any platform.

It turned out that this was way too fast on the Wayland platform as
`valerius` posted on IRC/Matrix on Nov 30, 2024. Citation:
"anyone else notice the cube demo on Wayland is mega ultra hyper speed?".

I took the opportunity to change the demo to use a timer with a given
frame rate (see constant 'FPS') to synchronize drawing.
Note: the 'speed' slider is independent of the drawing frequency.

Finally this commit adds statistics output when the 'Stats / Exit' button
is pressed like

  Iterations =  304, runtime = 12.167 sec, fps = 24.99, requested: 25

with the requested frame rate (default = 25) and allows the user to
continue to see more statistics.

To do (very likely not in 1.4.x):
 1. integrate running statistics in the display
 2. make the desired frame rate variable at runtime (new slider)
2024-12-01 16:43:31 +01:00
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