summaryrefslogtreecommitdiff
path: root/src/Fl_Image_Surface.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-12-16 16:06:07 +0000
committerManolo Gouy <Manolo>2016-12-16 16:06:07 +0000
commitd0f6ef5d3207d39b5209a608117d3078e40acb39 (patch)
treefecace913df1491a5a93725e0e70a859dffc6d2a /src/Fl_Image_Surface.cxx
parent1fc01c7cbb23fe21b1cf07261659badfb1dd3fb9 (diff)
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
Diffstat (limited to 'src/Fl_Image_Surface.cxx')
-rw-r--r--src/Fl_Image_Surface.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}
}
}