From 41eb37606010baa8568ee3698669973f2d05e224 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 6 May 2018 15:03:04 +0000 Subject: 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 --- src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/drivers/GDI') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx index 9368836ca..050d1ac4d 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx @@ -491,8 +491,7 @@ void Fl_GDI_Graphics_Driver::cache(Fl_RGB_Image *img) } } Fl_Surface_Device::pop_current(); - Fl_Offscreen offs = surface->get_offscreen_before_delete(); - delete surface; + Fl_Offscreen offs = Fl_Graphics_Driver::get_offscreen_and_delete_image_surface(surface); int *pw, *ph; cache_w_h(img, pw, ph); *pw = img->data_w(); @@ -707,8 +706,7 @@ void Fl_GDI_Graphics_Driver::cache(Fl_Pixmap *img) { } *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(img, pw, ph); *pw = img->data_w(); -- cgit v1.2.3