Commit Graph

12394 Commits

Author SHA1 Message Date
ManoloFLTK
450d23f636 Fix "Menu windows appear at wrong positions and sizes with multiple displays" (#1380) 2026-03-16 15:48:11 +01:00
ManoloFLTK
258a0f8f9e Fix "Cairo: Rect with negative dimensions is still drawn" (#1379) 2026-03-16 12:03:10 +01:00
ManoloFLTK
dd260389ec Fix Fl_X11_Window_Driver::flush_double(int) that could fail when scaling is applied (#1370) 2026-03-16 11:51:23 +01:00
ManoloFLTK
abaa550aea Simplify Fl_X11_Window_Driver::resize() when using cairo graphics. 2026-03-15 10:41:29 +01:00
ManoloFLTK
d8be762283 Fix use of the cairo graphics driver with Fl_Double_Window and the X11 platform (#1370).
FLTK now handles Fl_Double_Window with the cairo graphics driver as with the X11 graphics driver:
- when drawing via the window's draw() method, FLTK draws to the offscreen cairo surface
and then copies the offscreen surface to the screen;
- when drawing outside the draw() method after a call to make_current(), FLTK draws to
a cairo surface associated to the mapped window.
2026-03-15 09:16:18 +01:00
ManoloFLTK
b4f73314a7 Add int return type to Fl::get_mouse(int&, int&) providing the number of mouse-containing screen. 2026-03-13 15:53:52 +01:00
ManoloFLTK
a342d9f3d5 Improve Fl_Window::hotspot() when diverse screens have diverse scale factors. 2026-03-13 14:46:13 +01:00
ManoloFLTK
278e6eef6e Fix issues with Fl_RGB_Image::draw() + window scaling, and performance concerns (#1370) 2026-03-13 09:27:25 +01:00
ManoloFLTK
38cad05357 Improve Fl_RGB_Image::draw(int XP, int YP, int WP, int HP, int cx, int cy) 2026-03-11 16:36:27 +01:00
ManoloFLTK
a92fbec43a Improve drawing of part of Fl_RGB_Image while scaling display (#1370) 2026-03-10 16:00:34 +01:00
ManoloFLTK
ce7b335d4d Improve control of screen where FLTK positions menu windows (#1376) 2026-03-10 08:33:34 +01:00
ManoloFLTK
527972e7a4 Fix "Window scaling shortcut always moves window towards "initial" display on Windows" (#1371) 2026-03-09 18:42:23 +01:00
ManoloFLTK
43fded082b Menus on Windows appear on wrong position on a 4K display (#1376) 2026-03-09 18:10:08 +01:00
ManoloFLTK
b67d4ef2dd Fix "fl_draw_image() with horizontal flip reads out of bounds" (#1369) 2026-03-09 17:47:59 +01:00
ManoloFLTK
d9a3fb32da Fix macOS crash when drawing image with draw_image() in some scenarios (#1372) 2026-03-09 14:43:59 +01:00
ManoloFLTK
ea27dafe1e Fix "Transparent PNGs not rendered correctly when window is scaled" (#1375) 2026-03-09 12:17:10 +01:00
ManoloFLTK
3d493308ed Fix "Please remove the slight transparency from menu windows on macOS" (#1373) 2026-03-09 11:11:49 +01:00
ManoloFLTK
0010349e05 Remove more code unused since FLTK requires macOS ≥ 10.7 - again 2026-03-04 13:05:55 +01:00
ManoloFLTK
2ff170be23 Remove more code unused since FLTK requires macOS ≥ 10.7 2026-03-04 12:58:05 +01:00
Greg Ercolano
bb1b10a440 Applied xuyun018's fix for Fl_Tree horiz scroll (#1297) 2026-03-03 16:46:50 -08:00
Rodrigo Arias Mallo
e931c21e89 Correct draw translation by 0.5 pixels only
Using 1.5 pixels causes text to be rendered one pixel offset to the top
left. This is visible when text is selected as the characters touch the
top left border.

The fl_text_extents is also updated to make sure the bounding box is
properly placed.
2026-03-03 09:10:58 +01:00
ManoloFLTK
486da9376d Fix "Blurry fonts with cairo/pango on FLTK >= 1.4" (#1365) 2026-03-01 12:22:52 +01:00
ManoloFLTK
e9f6f94c5a README.macOS.md: change minimum supported macOS version and mention dynamic libs 2026-02-28 10:24:03 +01:00
Matthias Melcher
97c2a52c7c Fix crash in Fl_Tabs without children (#1366) 2026-02-27 14:18:26 +01:00
ManoloFLTK
e7addb470f macOS build: fuse two add_custom_command() CMake calls into a single one 2026-02-27 09:17:13 +01:00
ManoloFLTK
df02d1e57e Improve Cmake code to codesign macOS test bundles using a generator expression. 2026-02-26 18:07:16 +01:00
ManoloFLTK
9f7184e5f1 Patch for macOS build to support FLTK_BUILD_SHARED_LIBS=On 2026-02-26 17:13:15 +01:00
ManoloFLTK
d42d9bf73e macOS build: add ad-hoc signature to test program bundles.
Unsigned bundles behave incorrectly when the app calls fl_open_callback()
and a file is dragged on the bundle icon to launch it: a delay of several seconds
occurs before the app shows its GUI.
2026-02-26 16:14:56 +01:00
ManoloFLTK
47b9156ac7 Restore to commit f2424bf.
There remains a mysterious difference when dropping a file on an app icon
under macOS 26 between an app built with Xcode and one built with CMake.
2026-02-26 11:38:19 +01:00
ManoloFLTK
33f29ae481 Restore correct support of fl_open_callback() under macOS 26 - cont'd 2026-02-25 19:53:07 +01:00
ManoloFLTK
0b88a6c63b Restore correct support of fl_open_callback() under macOS 26 - cont'd 2026-02-25 18:58:01 +01:00
ManoloFLTK
afa7434f0c Restore correct support of fl_open_callback() under macOS 26 2026-02-25 18:01:17 +01:00
ManoloFLTK
f2424bf1fc Further simplification following new minimum supported macOS version: 10.7 - cont'd 2026-02-25 16:55:35 +01:00
Matthias Melcher
6d09a39222 Fluid: typos 2026-02-23 13:33:41 +01:00
Matthias Melcher
b966e87eb9 Fluid: lambda 2026-02-23 13:33:41 +01:00
Matthias Melcher
e4b3713fad Fluid: user_data_ 2026-02-23 13:33:41 +01:00
Matthias Melcher
5f6a2cbb16 Fluid: user_data_type_ 2026-02-23 13:33:41 +01:00
ManoloFLTK
1be412ab69 Further simplification following new minimum supported macOS version: 10.7 - cont'd 2026-02-15 15:37:46 +01:00
ManoloFLTK
db18699e95 Further simplification following new minimum supported macOS version: 10.7 2026-02-15 15:27:47 +01:00
Albrecht Schlosser
6f8ed5a85d 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.
2026-02-08 17:59:01 +01:00
Albrecht Schlosser
b9ff72c573 Revert "Prefix user-set window class name" (Windows only)
... introduced in commit 81c965f8e2.

Note: we must not change the xclass (WNDCLASS) set by the user.

Setting another xclass() in FLTK demo programs where the name might
conflict with system WNDCLASS's is the better choice.
2026-02-08 17:44:58 +01:00
Albrecht Schlosser
6cb0ce6615 Add missing FL_EXPORT macro 2026-02-07 20:29:04 +01:00
Albrecht Schlosser
75df975c5e Fix compiler warning (remove debug output statement) 2026-02-07 20:28:27 +01:00
Albrecht Schlosser
8b4af06a96 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 20:08:23 +01:00
ManoloFLTK
2521c8a519 X11 platform: Fl::enable_im() crashes without input methods (#1364) 2026-02-06 07:30:39 +01:00
ManoloFLTK
e33176ebe0 Mention in CHANGES.txt the new minimal required version of macOS. 2026-02-06 07:29:09 +01:00
Albrecht Schlosser
75fc94d6c7 Improve test/utf8 demo by using Fl_Grid and more
- separate layout and contents of example text widgets
- use Fl_Grid for more flexibility in the layout of the main window
- reformat some parts but not all code to FLTK style
- add comments, fix font style calculation ("near fixed pitch")
- add tooltips with user instructions to some of the widgets
- add "rainbow" emoji as colored emoji example
- reformat contents of the "unichar drop box"
2026-02-04 16:49:48 +01:00
Albrecht Schlosser
54712fd388 Fix compiler warning, rename confusing variable, format code
- fix: comparison of integer expressions of different signedness
- rename confusing variable 'l' to 'len' (l can be confused with 1)
- minor comment and code formatting

This commit should not change the behavior.
2026-02-02 20:07:41 +01:00
Albrecht Schlosser
db4aa25e99 Windows: define required Windows version for Pen/Tablet support
This is necessary for some (not all!) Windows toolchains that
define the required symbols only for Windows 8 and later.
2026-02-02 19:48:41 +01:00
ManoloFLTK
95e5b1b9c5 macOS: remove code present only to support macOS versions 10.6 and earlier - cont'd. 2026-02-02 13:13:11 +01:00