diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-20 09:34:44 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-20 09:34:44 +0200 |
| commit | fc339b431998b0461f8bd1180c7748aa7f893871 (patch) | |
| tree | 08152cca7ec1ba9540b197db0dd66d9cfc0ef1cf /src/drivers | |
| parent | 442faf9462ecc6e28373500bc3ecda958054f134 (diff) | |
Remove redundant initialisation
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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_); } |
