Commit Graph

12046 Commits

Author SHA1 Message Date
ManoloFLTK
3a2f4b3a94 Wayland: Fix resize of menutitle windows when across 2 screens with diverse scaling - cont'd. 2026-03-18 19:45:24 +01:00
ManoloFLTK
72396f7ecd Wayland: fix computation of wld_scale parameter for GL subwindows - cont'd (#1382) 2026-03-18 16:36:52 +01:00
ManoloFLTK
1ae8fcbcec Wayland: fix computation of wld_scale parameter for GL subwindows (#1382) 2026-03-18 12:28:56 +01:00
ManoloFLTK
db50e57390 Wayland: Fix resize of menutitle windows when across 2 screens with diverse scaling. 2026-03-18 10:20:37 +01:00
ManoloFLTK
4da0e2a3f8 Fix "Wayland: subwindows seem to grab scaling factor from primary monitor" (#1382) 2026-03-18 09:40:02 +01:00
ManoloFLTK
82e02270ee X11: Fix resize of menutitle windows when across 2 screens with diverse scaling 2026-03-17 20:47:06 +01:00
Albrecht Schlosser
84db8c33f3 Update CHANGES.txt with current status 2026-03-17 15:57:00 +01:00
Albrecht Schlosser
707e9455f0 Wayland: Fix crash in test/sudoku if ALSA soundlib is not available
... and the /hybrid/ FLTK lib is running under the Wayland backend.
In this case X11 stuff must be disabled.

Currently playing sounds under Wayland is only supported with the
ALSA sound library.
2026-03-17 15:53:06 +01:00
ManoloFLTK
5b20cd021d Close active menus when moving window to new screen. 2026-03-17 13:52:15 +01:00
ManoloFLTK
9921e4a641 X11: improve menubar behavior when across 2 screens with diverse scaling (#1380) 2026-03-17 09:20:06 +01:00
ManoloFLTK
ab78cbe6b3 X11: Remove crash with menubar across 2 screens with diverse scale factors (#1380) 2026-03-17 08:24:36 +01:00
ManoloFLTK
c5628670ba Rounding issues in Fl_RGB_Image::draw() + window scaling, and performance concerns (#1370)
This backports to branch-1.4 several commits to master: d8be762 + abaa550 + dd26038
all related to #1370.
2026-03-16 17:21:48 +01:00
ManoloFLTK
03cad76031 Fix "Menu windows appear at wrong positions and sizes with multiple displays" (#1380) 2026-03-16 15:57:00 +01:00
ManoloFLTK
d28ded0cd5 Fix "Cairo: Rect with negative dimensions is still drawn" (#1379) 2026-03-16 12:08:21 +01:00
ManoloFLTK
f2fb8eb6bf Improve Fl_Window::hotspot() when diverse screens have diverse scale factors. 2026-03-13 15:24:45 +01:00
ManoloFLTK
aa94053e65 Fix issues with Fl_RGB_Image::draw() + window scaling, and performance concerns (#1370) 2026-03-13 09:29:52 +01:00
ManoloFLTK
fe4075af06 Improve drawing of part of Fl_RGB_Image while scaling display (#1370) 2026-03-11 08:32:06 +01:00
ManoloFLTK
d05c0790a3 Improve control of screen where FLTK positions menu windows (#1376) 2026-03-10 10:37:34 +01:00
ManoloFLTK
201a56f0a5 Commits on Mar 9, 2026
Fix "Window scaling shortcut always moves window towards "initial" display on Windows" (#1371)
2026-03-09 18:45:15 +01:00
ManoloFLTK
432bffd134 Fix "fl_draw_image() with horizontal flip reads out of bounds" (#1369) 2026-03-09 17:53:09 +01:00
ManoloFLTK
22dfda94c8 Fix macOS crash when drawing image with draw_image() in some scenarios (#1372) 2026-03-09 14:48:24 +01:00
ManoloFLTK
6e362407a4 Fix "Transparent PNGs not rendered correctly when window is scaled" (#1375) 2026-03-09 12:22:06 +01:00
ManoloFLTK
6053c3b47a Fix "Please remove the slight transparency from menu windows on macOS" (#1373)
Backported from commit e931c21 to
2026-03-09 11:15:55 +01:00
Greg Ercolano
0e65bbfd2e Applied xuyun018's fix for Fl_Tree horiz scroll (#1297)
Original commit bb1b10a440 on master
by Greg (see also GitHub Issue).

Backported to branch-1.4 because it fixes an annoying bug in the user
interface.
2026-03-08 15:16:25 +01:00
ManoloFLTK
a17b09a04f Correct draw translation by 0.5 pixels only.
Backported from commit e931c21 to master.
2026-03-03 09:45:23 +01:00
ManoloFLTK
17b30b55e3 Fix "Blurry fonts with cairo/pango on FLTK >= 1.4" (#1365) 2026-03-01 15:31:25 +01:00
Matthias Melcher
4644fd0590 Fix crash in Fl_Tabs without children (#1366) 2026-02-27 14:17:34 +01:00
Albrecht Schlosser
4fee10cb82 Set window class name (xclass) in test/editor
... to avoid side effects under Windows where the default would
prevent entering emoji's with the emoji palette if the WNDCLASS
begins with "edit" (conflict with a system WNDCLASS).

This is also documented in the respective tutorial chapter.

Backported from master (6f8ed5a85d).
2026-02-08 18:07:33 +01:00
Albrecht Schlosser
3bdc51c480 CMake: don't export unnecessary executable files
Exporting executable files means that they would appear in the CMake
config files as "imported targets". This could break the config files
of Linux and other distributions if such executables are not installed
when building FLTK programs.

The only executable files that need to be exported are the `fluid`
executables that may be used to convert .fl files during building.
2026-02-07 19:36:59 +01:00
Albrecht Schlosser
08eedffa1d Remove conflicting FL_EXPORT from header file (#1357)
Note: we can't have FL_EXPORT together with an *implementation* in
a header file.

If compiled with FL_DLL defined, the error message would be:
  "Fl_Font_Descriptor::~Fl_Font_Descriptor()' definition is marked
   dllimport"

... with some build types using gcc (e.g. cross-compiling for Windows).
2026-02-07 19:36:59 +01:00
ManoloFLTK
ab5b28acf2 X11 platform: Fl::enable_im() crashes without input methods (#1364) 2026-02-07 14:44:30 +01:00
Albrecht Schlosser
7fb11e66ee Fix documentation (remove doxygen warning) 2026-02-07 01:06:15 +01:00
Albrecht Schlosser
b75cec6448 Bump version number from 1.4.4 to 1.4.5
Preparing to release 1.4.5, but there are still some issues to fix
and release files (CHANGES.txt, announcements, etc.) still need to
be updated.
2026-02-06 17:55:44 +01:00
Albrecht Schlosser
341090fe4a Fix compiler warning and documentation
- fix: comparison of integer expressions of different signedness

This commit should not change the behavior.

Backported in parts from 54712fd388.
2026-02-06 16:37:42 +01:00
Albrecht Schlosser
89beab653e Fix typo in CMake config file 2026-02-01 14:43:29 +01:00
ManoloFLTK
5ce5795db9 Windows: improve moving window across screens having distinct scale factors. 2026-01-30 16:37:03 +01:00
ManoloFLTK
b42d7a3578 Emoji support: fix in Fl_Text_Buffer::next_char() necessary for keycap emoji sequences. 2026-01-30 09:40:19 +01:00
ManoloFLTK
2f4e2837e5 Wayland paste and DnD: fix minor issue revealed by valgrind. 2026-01-30 09:30:37 +01:00
ManoloFLTK
ec86cc0f9d Add complete support of emojis to text widgets (#1360) 2026-01-29 19:00:23 +01:00
Albrecht Schlosser
8daaf9ebd6 Remove usage of fl_utf8froma(), improve layout of test/utf8
- use demo strings in UTF-8 encoding rather than converting them
  which also simplifies the code
- replace some hard-coded width and pos. values with constants
- enlarge width of text widgets (left column) of the main window
- replace display of Unicode range U+D800 ... U+DFFF with a text
  explaining that this space is used by UTF-16 surrogate pairs to
  prevent warning messages about invalid Unicode text.
2026-01-26 18:50:35 +01:00
ManoloFLTK
780a41e0d6 Fix "Setting window custom cursor from SVG image crashes" - cont'd (#1363) 2026-01-24 16:51:12 +01:00
ManoloFLTK
b0e53f4fcd Wayland: use UTF8 text from clipboard when available. 2026-01-24 09:02:25 +01:00
ManoloFLTK
aea091ca99 Fix "Setting window custom cursor from SVG image crashes" (#1363) 2026-01-22 14:38:49 +01:00
ManoloFLTK
211d42049d Improve handling of text containing context-dependent unicode points.
This commit makes platforms Windows and macOS compute string widths
with the same mechanism as what is in place for platforms Wayland/X11:
- the width of a string containing a single codepoint is computed and
memorized in the table of character widths;
- the width of a string containing several codepoints is computed as
such rather than as the sum of the widths of its composing characters.

This commit also fixes how text input under Windows is processed
when a character needs encoding as a surrogate.

The result is that FLTK text widgets input and draw correctly also
complex emojis encoded with context-dependent codepoints.
2026-01-21 15:47:59 +01:00
ManoloFLTK
d9cc1e555b Restore emojis support under recent macOS versions - cont'd (#1360) 2026-01-16 12:43:23 +01:00
ManoloFLTK
d4d1af2f73 Restore emojis support under recent macOS versions (#1360) 2026-01-12 17:57:19 +01:00
ManoloFLTK
8f7b72f34b Fix "Drawing to the wrong window with cairo and X11" (#1358) 2026-01-12 10:00:55 +01:00
ManoloFLTK
07cce04aa1 Fix "Wayland: NULL pointer dereference in Fl::cairo_make_current()" (#1359) 2026-01-11 16:55:56 +01:00
Albrecht Schlosser
82399ebe4b Clarify that a font must be loaded before measuring text (#1356)
Documentation only: users must load a font with fl_font(face, size)
before measuring text with methods like fl_measure(), fl_height(),
fl_width(), fl_text_extents() etc.
2026-01-03 13:58:56 +01:00
ManoloFLTK
3c6ec861ab Add that FLTK 1.3 supports also Windows 11. 2025-12-30 07:59:06 +01:00