ManoloFLTK
b26db74dd0
Fix for "Fatal error while communicating with the Wayland server" ( #610 )
...
This commit should fix: once the mouse leaves the app window area and returns back to it
(app loses focus and gets it again) the crash happens.
2022-12-24 11:13:02 +01:00
ManoloFLTK
84c5992d9f
Complete Fl_Cairo_Graphics_Driver::restore_clip()
...
The driver's clip_ member was not updated to the new Cairo clip state
which rendered function Fl_Cairo_Graphics_Driver::clip_box() inaccurate.
2022-12-19 10:22:22 +01:00
ManoloFLTK
5b6d5f9279
Remove further unused code after 12da87b
2022-12-17 19:12:53 +01:00
ManoloFLTK
2c1bb09578
Remove useless Fl_System_Driver members after 12da87b
2022-12-17 18:20:53 +01:00
ManoloFLTK
8dcd121d44
Text positioning different in 1.4.x vs 1.3.x ( #568 ) - cont'd
...
@wcout reports that we get better results if function pango_font_metrics_get_height()
is not used until version 1.50.6 and above of libpango. The difference is specially visible
with underscore characters in unscaled, standard DPI displays. This commit does that.
2022-12-10 19:00:09 +01:00
Matthias Melcher
a23c77c5a1
Defer opening the display as much as possible ( #586 )
2022-12-10 16:21:07 +01:00
Matthias Melcher
60d6e9be14
Fixes some VC compiler warnings
2022-12-10 16:03:29 +01:00
Albrecht Schlosser
8dea6505e9
Windows: fix memory leak caused by RegisterDragDrop ( #569 )
...
- call RevokeDragDrop() when the window is hidden
- do not delete the *static* FLDropTarget object
2022-12-10 15:03:30 +01:00
Matthias Melcher
5673072271
Fixes OpenGL complex polygons when scaling ( #576 )
...
Also fixes gap()
2022-12-10 13:10:36 +01:00
ManoloFLTK
eb2572deaf
Add new Wayland-specific fl_wl_compositor() function
2022-12-09 17:06:35 +01:00
Albrecht Schlosser
823dc5acc4
Fix compilation warning, update dependencies
...
Warning: variable ‘j’ set but not used [-Wunused-but-set-variable]
2022-12-08 19:09:18 +01:00
ManoloFLTK
b9a9f7f10c
Simpler prototype of Fl_Wayland_Graphics_Driver::buffer_commit() member - cont'd
2022-12-08 15:22:08 +01:00
ManoloFLTK
503492db78
Simplify prototype of Fl_Wayland_Graphics_Driver::buffer_commit() member
2022-12-08 10:16:06 +01:00
ManoloFLTK
cbd37a2870
Wayland: fix progressive drawing as in test/mandelbrot
2022-12-07 08:46:50 +01:00
ManoloFLTK
90c7e6bcb1
Fix issue #537 without damaging test/mandelbrot
2022-12-06 14:46:11 +01:00
Matthias Melcher
0d485b34a2
Fixing fl_complex_polygon() compilation for WIN32 ( #571 )
2022-12-05 19:57:30 +01:00
Matthias Melcher
9f92972729
Implement fl_complex_polygon() for OpenGL ( #570 )
2022-12-05 19:27:12 +01:00
ManoloFLTK
a8923a0fd4
Wayland: remove regression in mandelbrot introduced by 1a5d657
...
The panel was drawn solid black when test/mandelbrot was unfocussed.
2022-12-04 12:29:24 +01:00
ManoloFLTK
1b938ab8b1
Fl_Cairo_Graphics_Driver: simpler way to construct font from name+size
2022-12-04 09:31:24 +01:00
ManoloFLTK
70e19a9e00
Fix dotted line drawing under Cairo graphics driver
2022-12-03 06:38:25 +01:00
ManoloFLTK
e5c3caeb6b
Fix text drawn by pango is offset +1 pixel on x and y) ( #568 )
2022-12-02 16:14:38 +01:00
Matthias Melcher
bf825f8ebd
Add a unit test for drawing complex shapes ( #565 )
2022-11-30 22:40:52 +01:00
ManoloFLTK
bc3bbb7ca0
Remove useless fl_matrix member variable of class Fl_Graphics_Driver
2022-11-30 18:57:39 +01:00
ManoloFLTK
67817f696c
Remove small files fl_XXX_gl_platform_init.cxx
...
The single-function content of these files is moved to Fl_XXX_Gl_Window_Driver.cxx.
2022-11-30 17:51:35 +01:00
ManoloFLTK
00884f28e2
Fix for issue [Cairo]: Arrows have a "gap" ( #561 )
...
The problem to fix is that the arrow drawn by draw_arrow1() in src/fl_symbols.cxx
displays a faint clear line between the stem and head of the arrow with the Cairo
graphics driver.
This occurs because draw_arrow1() draws the arrow in 2 steps (a rectangle +
a triangle) and the Cairo driver is configured to use antialiasing when filling
polygons. The antialiasing produces the faint line between stem and head.
Why does draw_arrow1() draw a rectangle + a triangle rather than a
7-vertex polygon? That's because the X11 graphics driver fails with its polygon-
drawing function when the polygon is also rotated: the polygon is drawn
empty.
We want to keep using antialiasing under Cairo for polygons because
the result is better with non horizontal/vertical polygon edges.
This implementation changes function draw_arrow1() which draws
the arrow as a 7-vertex filled polygon except when the graphics driver
returns false for its virtual member function can_fill_non_convex_polygon().
In that situation, draw_arrow1() draws, as before, a rectangle + a triangle.
The new, virtual member function can_fill_non_convex_polygon() returns
true except for the X11 graphics driver. Therefore, draw_arrow1() is effectively
unchanged under the X11 driver.
2022-11-29 12:28:31 +01:00
ManoloFLTK
4de491d02e
Make Fl_XXX_Graphics_Driver::create_bitmask() a static member function
2022-11-25 15:53:28 +01:00
Matthias Melcher
09697c4738
Fix GDI graphics driver use for bitmasks
2022-11-25 10:52:46 +01:00
ManoloFLTK
c3011e32e4
Improve text drawing above GL3 scene under macOS
2022-11-24 15:48:39 +01:00
Matthias Melcher
12dccaf711
Check boundary conditions in Cocoa scroll code ( #554 )
2022-11-24 12:44:08 +01:00
ManoloFLTK
e19d2d98ba
OpenGL3 under macOS: simpler implementation of support of child widgets
2022-11-24 09:13:40 +01:00
ManoloFLTK
27a6fd9609
Configure-based build: control presence of GL-related packages
2022-11-23 17:24:59 +01:00
ManoloFLTK
42b74919e5
Improve Fl_Cocoa_Gl_Window_Driver::switch_to_GL1() to support multiple GL3 windows
2022-11-23 11:59:49 +01:00
ManoloFLTK
d215ddef81
Fix for issue #412 for the Wayland backend
...
The problem was that after a drag-n-drop within a window, text selection
by shift+arrow key stopped working.
Also, improves drag-n-drop within a window by leaving insertion point
at end of dragged text.
2022-11-23 09:33:41 +01:00
ManoloFLTK
4daec2a940
macOS: Fix release of extra NSView holding child widgets of GL window
2022-11-22 19:18:29 +01:00
ManoloFLTK
8a53fc9611
Replace #if FLTK_USE_X11 by #ifdef FLTK_USE_X11
2022-11-20 07:33:08 +01:00
ManoloFLTK
402764f5c1
Remove development stage "Using Wayland backend" message
2022-11-17 07:31:37 +01:00
ManoloFLTK
167a3268c9
Fix "Cairo: Scaled images draw with wrong size" ( #537 )
2022-11-17 07:14:20 +01:00
ManoloFLTK
7f8f7c5b85
Add support of .svgz image files to fluid
...
The prototype of the public Fl_SVG_Image constructor is expanded
to allow construction from in-memory, gzip'ed binary data.
2022-11-15 10:09:01 +01:00
Albrecht Schlosser
d1054c5f6c
Fix yet another Visual Studio compiler warning
2022-11-14 19:08:02 +01:00
Albrecht Schlosser
8d636d931e
Fix Visual Studio compiler warnings
2022-11-11 19:27:00 +01:00
Albrecht Schlosser
74b9d5fb05
Remove redundant doxygen docs of fl_beep()
...
Also add a comment to all platform driver implementations.
2022-11-11 16:52:08 +01:00
ManoloFLTK
f41861976b
Wayland: remove unneeded friend declarations
2022-11-09 15:49:02 +01:00
ManoloFLTK
1a41178e77
Wayland: improve processing of the -display command line argument
2022-11-08 08:16:55 +01:00
ManoloFLTK
402b08cb6e
Wayland: show keyboard modifiers during mouse clicks ( #534 )
2022-11-08 08:09:12 +01:00
ManoloFLTK
9c793a383f
Wayland: cancel drag-n-drop after Fl::pushed(0) ( #525 )
2022-11-08 07:22:16 +01:00
ManoloFLTK
38536d8918
Fix initialisation of hybrid Wayland/X11 platform
...
Also, terminate Wayland drag-and-drop operation after Fl::pushed(0).
2022-11-07 09:02:22 +01:00
ManoloFLTK
6e9f72adce
Delete src/drivers/X11/Fl_X11_System_Driver.*
2022-11-07 06:54:09 +01:00
ManoloFLTK
c6a854ef91
Delete src/drivers/Wayland/Fl_Wayland_System_Driver.*
2022-11-07 06:50:59 +01:00
ManoloFLTK
37bf3835b0
Create class Fl_Unix_Screen_Driver used by X11 and Wayland platforms
2022-11-07 06:49:40 +01:00
ManoloFLTK
44219594d1
Check return value from call to gtk_init_check()
2022-11-06 08:11:05 +01:00