Remove redundant initialisation

This commit is contained in:
ManoloFLTK 2023-08-20 09:34:44 +02:00
parent 442faf9462
commit fc339b4319
1 changed files with 1 additions and 3 deletions

View File

@ -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_);
}