Add support of Fl_Region to the Cairo graphics driver

and remove it from the Wayland graphics driver.
This commit is contained in:
ManoloFLTK
2022-03-31 10:35:50 +02:00
parent a638f5a545
commit d9a6ec88e4
7 changed files with 70 additions and 61 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ typedef struct HGLRC__ *GLContext;
#elif defined(FLTK_USE_WAYLAND)
typedef struct fl_wld_buffer *Fl_Offscreen; /**< an offscreen drawing buffer */
typedef struct flWaylandRegion* Fl_Region;
typedef struct flCairoRegion* Fl_Region;
typedef int FL_SOCKET; /**< socket or file descriptor */
typedef void *EGLContext;
typedef EGLContext GLContext;
+1 -1
View File
@@ -20,7 +20,7 @@
typedef struct wld_window *Window;
struct flWaylandRegion {
struct flCairoRegion {
int count;
struct _cairo_rectangle *rects;
}; // a region is the union of a series of rectangles
+7
View File
@@ -86,6 +86,13 @@ extern FL_EXPORT Fl_XFont_On_Demand fl_xfont;
extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid()
#if USE_PANGO
struct flCairoRegion {
int count;
struct _cairo_rectangle *rects;
}; // a region is the union of a series of rectangles
#endif
#endif // FL_LIBRARY || FL_INTERNALS
#endif // FL_DOXYGEN