From 0c930b9ca31a868679372528954ef5b8e6b83b33 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 5 Apr 2023 23:21:43 +0200 Subject: Wayland: limit copied pixels when window update is a region --- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/drivers/Cairo') diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H index c2a7d4c54..6a782c3c5 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H @@ -28,12 +28,10 @@ typedef struct _PangoLayout PangoLayout; typedef struct _PangoContext PangoContext; typedef struct _PangoFontDescription PangoFontDescription; -#if USE_PANGO - struct flCairoRegion { - int count; - struct _cairo_rectangle *rects; - }; // a region is the union of a series of rectangles -#endif +struct flCairoRegion { + int count; + struct _cairo_rectangle *rects; +}; // a region is the union of a series of rectangles class Fl_Cairo_Font_Descriptor : public Fl_Font_Descriptor { public: -- cgit v1.2.3