From 4bf9172a8e4f76842a2e011671cf5c057e8fe1d1 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 23 Apr 2023 10:03:02 +0200 Subject: Replace internal fl_create_offscreen() calls by new Fl_Image_Surface --- src/Fl_Window_Driver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Fl_Window_Driver.cxx') diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index f31d45ceb..25d2554c6 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -22,6 +22,7 @@ */ #include "Fl_Window_Driver.H" +#include #include #include #include @@ -120,7 +121,7 @@ void Fl_Window_Driver::draw_end() { } void Fl_Window_Driver::destroy_double_buffer() { - fl_delete_offscreen(other_xid); + delete other_xid; other_xid = 0; } -- cgit v1.2.3