From 2445797e45f5e90eb5fd04c6678245e35dc72b10 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 7 Nov 2019 14:28:20 +0100 Subject: Reorganise use of virtual member function Fl_Surface_Device::end_current() --- FL/Fl_Device.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 3a31a49b7..0c3476590 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -73,7 +73,7 @@ class FL_EXPORT Fl_Surface_Device { protected: /* Some drawing surfaces (e.g., Fl_XXX_Image_Surface_Driver) re-implement this. Gets called each time a surface ceases to be the current drawing surface. */ - virtual void end_current() {} + virtual void end_current() { surface_ = 0;} /** Constructor that sets the graphics driver to use for the created surface. */ Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver; } /** Sets the graphics driver of this drawing surface. */ -- cgit v1.2.3