summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-05-06 15:03:04 +0000
committerManolo Gouy <Manolo>2018-05-06 15:03:04 +0000
commit41eb37606010baa8568ee3698669973f2d05e224 (patch)
tree21157b6a1b69cfed6684ffe1ed921578bb462af9 /src/drivers/Xlib
parentccae86b291cb25076238d419c0dc75bf9d35cb68 (diff)
Make member function Fl_Image_Surface::get_offscreen_before_delete() be private.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Xlib')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver_image.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_image.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_image.cxx
index 68cb70833..dad106a02 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_image.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_image.cxx
@@ -712,8 +712,7 @@ void Fl_Xlib_Graphics_Driver::cache(Fl_RGB_Image *img) {
Fl_Surface_Device::push_current(surface);
fl_draw_image(img->array, 0, 0, img->data_w(), img->data_h(), depth, img->ld());
Fl_Surface_Device::pop_current();
- Fl_Offscreen off = surface->get_offscreen_before_delete();
- delete surface;
+ Fl_Offscreen off = Fl_Graphics_Driver::get_offscreen_and_delete_image_surface(surface);
int *pw, *ph;
cache_w_h(img, pw, ph);
*pw = img->data_w();
@@ -879,8 +878,7 @@ void Fl_Xlib_Graphics_Driver::cache(Fl_Pixmap *pxm) {
}
*pbitmap = 0;
Fl_Surface_Device::pop_current();
- Fl_Offscreen id = surf->get_offscreen_before_delete();
- delete surf;
+ Fl_Offscreen id = Fl_Graphics_Driver::get_offscreen_and_delete_image_surface(surf);
int *pw, *ph;
cache_w_h(pxm, pw, ph);
*pw = pxm->data_w();