From fc339b431998b0461f8bd1180c7748aa7f893871 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 20 Aug 2023 09:34:44 +0200 Subject: Remove redundant initialisation --- src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx index d5e1315a6..1dcc3cc04 100644 --- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx @@ -236,10 +236,8 @@ Fl_Wayland_Graphics_Driver::draw_buffer *Fl_Wayland_Graphics_Driver::offscreen_b Fl_Image_Surface *Fl_Wayland_Graphics_Driver::custom_offscreen(int w, int h, struct Fl_Wayland_Graphics_Driver::wld_buffer **p_off) { - struct Fl_Wayland_Graphics_Driver::wld_buffer *off = - Fl_Wayland_Graphics_Driver::create_shm_buffer(w, h); + struct wld_buffer *off = create_shm_buffer(w, h); *p_off = off; - memset(off->draw_buffer.buffer, 0, off->draw_buffer.data_size); cairo_set_user_data(off->draw_buffer.cairo_, &key, &off->draw_buffer, NULL); return new Fl_Image_Surface(w, h, 0, (Fl_Offscreen)off->draw_buffer.cairo_); } -- cgit v1.2.3