From d0f6ef5d3207d39b5209a608117d3078e40acb39 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 16 Dec 2016 16:06:07 +0000 Subject: Improve Fl_Graphics_Driver::copy_offscreen() so it accepts an Fl_Offscreen argument even if not created by fl_create_offscreen(). With this, fl_copy_offscreen() can be used with any drawing surface (e.g., PostScript) and any Fl_Offscreen argument (e.g., returned by Fl_image_Surface::offscreen()). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image_Surface.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Fl_Image_Surface.cxx') diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx index 2fa60fd1f..632bc3de0 100644 --- a/src/Fl_Image_Surface.cxx +++ b/src/Fl_Image_Surface.cxx @@ -146,6 +146,7 @@ void fl_delete_offscreen(Fl_Offscreen ctx) { if (offscreen_api_surface[i] && offscreen_api_surface[i]->offscreen() == ctx) { delete offscreen_api_surface[i]; offscreen_api_surface[i] = NULL; + return; } } } -- cgit v1.2.3