summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-04-25 10:22:23 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-04-25 10:22:23 +0200
commit8808d115780f962e892f08ab2335c351f575c135 (patch)
tree5a6bf0bbf47c736bb8a9b319319e7731e084fcf9 /src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
parent1ae95fddd96d7a289f1929cdcd253ed52aa5d631 (diff)
Create member function Fl_Cairo_Graphics_Driver::set_cairo().
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
index c11d02a52..b650fcffd 100644
--- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
+++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
@@ -65,7 +65,6 @@ struct fl_wld_buffer {
struct wl_callback *cb;
bool draw_buffer_needs_commit;
cairo_t *cairo_;
- PangoLayout *pango_layout_;
};
struct wld_window;
@@ -76,7 +75,7 @@ private:
public:
Fl_Wayland_Graphics_Driver();
static const uint32_t wld_format;
- void activate(struct fl_wld_buffer *buffer, float scale);
+ void set_buffer(struct fl_wld_buffer *buffer, float scale = 0);
void set_color(Fl_Color i, unsigned c);
void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen osrc, int srcx, int srcy);
static struct fl_wld_buffer *create_shm_buffer(int width, int height);