Commit Graph

9885 Commits

Author SHA1 Message Date
ManoloFLTK
9d054a169b Remove typos. 2022-05-10 17:00:32 +02:00
ManoloFLTK
a638d90e00 Add missing closing parenthesis. 2022-05-10 16:56:25 +02:00
ManoloFLTK
b6e0122926 Fix for issue #441: Some minor regressions with borderless+fullscreen (Wayland). 2022-05-10 16:52:46 +02:00
ManoloFLTK
ad27da578a Avoid glpuzzle crash when resizing while puzzle is spinning - cont'd. 2022-05-09 19:56:17 +02:00
ManoloFLTK
48ca0e3b50 Avoid glpuzzle crash when resizing while puzzle is spinning. 2022-05-09 14:07:02 +02:00
ManoloFLTK
20c50312fc Cleaner declaration of public function fl_wl_cairo(). 2022-05-09 09:41:50 +02:00
ManoloFLTK
c02fba6bb9 Slight simplification of Fl_Wayland_Graphics_Driver::create_shm_buffer(). 2022-05-07 18:08:07 +02:00
ManoloFLTK
1d64b78554 Change protection levels in classes Fl_XXX_Gl_Window_Driver 2022-05-07 15:16:29 +02:00
ManoloFLTK
d4472e5e53 Remove useless typedef declaration. 2022-05-06 09:52:52 +02:00
ManoloFLTK
217120c281 Move struct shape_data_type inside Fl_XXX_Window_Driver. 2022-05-05 18:57:07 +02:00
ManoloFLTK
170a9d8e1f Approximate result of pango_font_metrics_get_height() for Pango < 1.44 2022-05-05 12:20:24 +02:00
ManoloFLTK
af91083a7f Fl_Cairo_Graphics_Driver: simpler code with early calls to cairo_surface_destroy().
Add also replacement for pango_font_metrics_get_height() which requires Pango 1.44
2022-05-05 11:34:10 +02:00
ManoloFLTK
e02ee7d5f1 Add check against null pointer occurrence reported with Gmsh (Issue #434). 2022-05-05 10:21:50 +02:00
ManoloFLTK
7d5d2af547 Cairo: reduce vertical offset for text position needed by Fl_Text_Display. 2022-05-04 08:28:12 +02:00
ManoloFLTK
a6e2940792 Remove one-pixel top and left borders of shaped windows. 2022-05-03 11:49:38 +02:00
ManoloFLTK
158d39df37 Correct typos in doc. 2022-05-03 08:51:40 +02:00
ManoloFLTK
9082c44cd0 Issue #438 : Wayland: Text drawing different from Xft version - cont'd. 2022-05-02 19:40:43 +02:00
ManoloFLTK
049cef17f7 Set line height as computed by Pango. 2022-05-02 12:41:20 +02:00
ManoloFLTK
85cf597765 Keep the PangoLayout member private in class Fl_Cairo_Graphics_Driver. 2022-05-02 11:05:23 +02:00
ManoloFLTK
71dedbc886 Issue #438 : Wayland: Text drawing different from Xft version - cont'd. 2022-05-01 09:44:20 +02:00
ManoloFLTK
cf1c8b1125 Fix for issue #438 : Wayland: Text drawing different from Xft version - cont'd. 2022-04-30 16:37:28 +02:00
ManoloFLTK
5341f0e45e Add explanatory comments about text size and vertical position. 2022-04-29 16:34:47 +02:00
ManoloFLTK
1b513d3f00 Fix for issue #438 : Wayland: Textdrawing different from Xft version. 2022-04-29 13:10:40 +02:00
ManoloFLTK
a8da590d11 Fix for issue #434 : Segfaults on macOS. 2022-04-29 09:38:27 +02:00
Albrecht Schlosser
c74a482756 Make Cairo example compatible with Cairo version < 1.12 (#436) 2022-04-26 15:36:29 +02:00
ManoloFLTK
4618fa9053 Create member function Fl_Cairo_Graphics_Driver::set_cairo()- cont'd. 2022-04-25 10:29:57 +02:00
ManoloFLTK
8808d11578 Create member function Fl_Cairo_Graphics_Driver::set_cairo(). 2022-04-25 10:22:23 +02:00
Albrecht Schlosser
1ae95fddd9 Remove obsolete configure test for 'bool'
as discussed in fltk.coredev "RFC: autoconf test for 'bool' type"
on Apr 12, 2021.
2022-04-24 13:33:23 +02:00
ManoloFLTK
285e8e843a Create Fl_Cairo_Graphics_Driver::handle_dummy_cairo(cairo_t *cr). 2022-04-23 16:15:05 +02:00
ManoloFLTK
8e21120f75 Restore use of CMake OPTION_USE_SYSTEM_LIBDECOR 2022-04-22 08:00:00 +02:00
ManoloFLTK
8b1d6053f9 libdecor-cairo.c doesn't need any FLTK modification now. 2022-04-21 11:20:15 +02:00
ManoloFLTK
9367bb5108 Avoid code duplication using os_create_anonymous_file() from libdecor. 2022-04-21 07:38:51 +02:00
ManoloFLTK
24885b3810 Minor improvement of get_prog_name(). 2022-04-21 07:06:18 +02:00
ManoloFLTK
2b904ccef4 Apply changes from upstream: https://gitlab.gnome.org/jadahl/libdecor 2022-04-21 06:47:14 +02:00
Albrecht Schlosser
804c48515d Improve docs of Fl_Image and related classes (#431)
Clarifications as discussed since April 15, 2022 07:00 UTC (see GitHub
issue #431).
2022-04-20 17:26:33 +02:00
ManoloFLTK
c1d0783df9 Document how to set window icons under Wayland - cont'd. 2022-04-15 11:05:19 +02:00
ManoloFLTK
5234e1ab38 Document how to set window icons under Wayland. 2022-04-15 10:48:37 +02:00
ManoloFLTK
827f91110b Remove unimplemented window icon-related member functions and variables.
Wayland uses .desktop files to set window icons.
2022-04-15 08:31:32 +02:00
Albrecht Schlosser
a7267f91ae Fix yet another documentation typo 2022-04-15 02:48:16 +02:00
Albrecht Schlosser
8bcfb88679 Fix documentation typo
Fix missing opening quote. (#431 cont'd)
2022-04-15 02:16:06 +02:00
Albrecht Schlosser
114dbc9c81 Clarify documentation of Fl_Image::copy() and more (#431)
- emphasize that Fl_Image::copy(W, H) creates an image with
  w() == data_w() == W and h() == data_h() == H
- clarify some more docs of Fl_Image methods (ensure that data_w()
  and data_h() are used where appropriate rather than w() and h()
- improve wording, examples, and formatting of related docs.

Closes #431
2022-04-15 02:01:33 +02:00
ManoloFLTK
290c856739 Merge remote-tracking branch 'refs/remotes/origin/master' 2022-04-14 14:48:48 +02:00
ManoloFLTK
f9e60ac432 Pull in last changes in upstream : gitlab.gnome.org/christian-rauch/libdecor/ branch gtk_cairo_single 2022-04-14 14:48:35 +02:00
Masato Sugiyama
d3ceac04de update README.macOS.md (Creating new Projects) 2022-04-14 13:05:33 +02:00
ManoloFLTK
d83d89679b Fix for issue #429 : Segfault with Ctrl+/- with current git version 2022-04-14 11:07:56 +02:00
Albrecht Schlosser
1e99a00c65 Update "migration" documentation with new information
- clarify and extend documentation of Fl_Preferences file locations
- add info about locale independent Fl_Preferences types (enum)
- add info about FLTK timer consolidation across platforms
2022-04-13 23:08:20 +02:00
Albrecht Schlosser
10537b7143 Make Fl_Image::copy() 'const', including all derived classes
Copying an image does not (and must not) change the original object,
hence copy() should always be 'const'.

This is *necessary* if the given Fl_Image object is 'const'.
2022-04-13 16:50:30 +02:00
ManoloFLTK
95b5623b96 Fix for issue #427 - continued. 2022-04-13 11:13:05 +02:00
ManoloFLTK
e25758582e Fix for issue #427 - continued. 2022-04-13 09:30:31 +02:00
ManoloFLTK
bfae813c4e Fix for issue #427: Problems with data_w, data_h, w, h of Fl_Image. 2022-04-12 15:06:21 +02:00