Commit Graph

7315 Commits

Author SHA1 Message Date
Albrecht Schlosser
546a3168f6 Fix typos in documentation of Fl_Tabs 2025-01-15 16:05:01 +01:00
Albrecht Schlosser
a48ebc5db0 Fix return value of Fl_Table_Row::row_selected(int) (PR #1187)
As discussed in the context of PR #1187 the previous return value '-1'
was misleading and undocumented. The docs mentioned only '1' and '0'.

User code that used the return value as documented (like a `bool`)
would make the wrong decision if the return value was '-1': true
(selected) instead false (out of range).

This commit fixes the code by doing what the docs define and clarifies
the documentation.

Further documentation improvements of Fl_Table (example code used a
method that is not defined in Fl_Table) and of Fl_Table_Row are
included as well.

Doxygen docs of two methods of Fl_Table_Row moved to the .cxx file
where they belong according to the CMP.
2025-01-14 15:21:42 +01:00
ManoloFLTK
06418e4b21 Repair incorrect path in #include directive 2025-01-11 17:49:44 +01:00
ManoloFLTK
45239af178 Make Fl_SVG_Graphics_Driver use the C locale when writing float values 2025-01-11 17:45:36 +01:00
ManoloFLTK
be72c49296 Remove unnecessary #include directive 2025-01-11 17:39:07 +01:00
ManoloFLTK
0f71d63834 Fl_Text_Editor::wrap_mode(Fl_Text_Display::WRAP_AT_BOUNDS, 0) hurts scrolling (#1186) 2025-01-11 15:38:20 +01:00
ManoloFLTK
70fff72e2d Wayland platform: fix handling of key repeats 2025-01-10 16:38:48 +01:00
ManoloFLTK
7bb8bdb1fa Fix Fl_{Wayland|Xlib}_{Copy|Image}_Surface_Driver::set_current()
Member function Fl_Cairo_Graphics_Driver::set_cairo() needs be called only to initialize the driver.
Doing it also later undoes the effect of Fl_Widget_Surface::translate() if used
when Fl_Surface_Device::pop_current() calls the overridden Fl_Surface_Device::set_current().
2025-01-10 08:20:01 +01:00
ManoloFLTK
c0c2cf7d40 Make draw to image and draw to clipboard behave equally in X11 and Wayland 2025-01-08 14:37:57 +01:00
ManoloFLTK
70729e6fdb Document in detail how screen work areas are computed across platforms (#1180) 2024-12-31 17:30:44 +01:00
Matthias Melcher
2100655a1b Fix integer overflow in image interpolation. (#73)
Force casting int to long whenever a pixel offset is calculated
as offsets can cross the 2GB border for very large images.
2024-12-26 15:01:58 -05:00
ManoloFLTK
95c66a0488 Wayland: fix a border case in member function Fl_Wayland_Window_Driver::resize() 2024-12-26 16:10:50 +01:00
MatthiasWM
4d8a0df312 FLUID: Improve path handling on Windows. 2024-12-21 12:14:31 -06:00
Albrecht Schlosser
9f66df51b0 Fix compiler warning [-Wsign-compare] 2024-12-19 17:26:42 +01:00
Matthias Melcher
809dae489d Fix Help View find method (#1119)
The search function now skips '<...>' blocks
more reliably and also finds Unicode HTML entities and
UTF-8 encoded characters.
2024-12-16 23:32:20 +01:00
Matthias Melcher
3293a68c1d Fix possibly uncleared damage flag of Fl_Pack (#1172).
Damage flag `FL_DAMAGE_ALL` is set during Fl_Pack::draw if child
is repositioned. If the child is outside the clipping area, if will not redraw
and the flag will remain set even after Fl_Pack::draw which is not allowed.
2024-12-16 20:30:46 +01:00
ManoloFLTK
c083e5c5fb Fix: Crash on macOS if Escape is pressed while Help submenu is open (#1170) 2024-12-15 16:00:06 +01:00
ManoloFLTK
86eaf0f905 Fix: Window can be moved while menu is open - cont'd (#1166) 2024-12-12 16:09:06 +01:00
ManoloFLTK
4571af24ab Fix: Window can be moved while menu is open (#1166) 2024-12-12 12:09:53 +01:00
Matthias Melcher
34b5fe9e92 Fix drawing issue for checkbox buttons with bad box type (#1130) 2024-12-11 13:53:33 +01:00
Albrecht Schlosser
6784ae807c Fix compiler warnings (VS 2019)
Found with warning level: /W3
2024-12-10 23:12:22 +01:00
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
dannye
4a017e8a2a
Fix inconsistencies with Tab/Backspace handling in menus (#1157) 2024-12-09 22:18:37 +01:00
Albrecht Schlosser
fe8177ea2c Update Fluid (.fl) files for release 1.4.1 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
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
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
dannye
404411ea68
Fix changed flag for radio buttons (#1146) 2024-11-28 23:14:07 +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
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
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
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
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