diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-11-07 14:28:20 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-11-07 14:28:20 +0100 |
| commit | 2445797e45f5e90eb5fd04c6678245e35dc72b10 (patch) | |
| tree | 355577e25fb5656fa19b8a0ded7426dad002fbc3 /FL/Fl_Device.H | |
| parent | 20ab318875618c06985ff877e99535514f8abead (diff) | |
Reorganise use of virtual member function Fl_Surface_Device::end_current()
Diffstat (limited to 'FL/Fl_Device.H')
| -rw-r--r-- | FL/Fl_Device.H | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |
