diff options
| author | Manolo Gouy <Manolo> | 2016-02-23 20:37:22 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-23 20:37:22 +0000 |
| commit | 941c301cebc5e636667cca1ae8f3938a25d770df (patch) | |
| tree | 46d80a452344420a7ddffb424624864a0ec40262 /src/Fl_Image.cxx | |
| parent | 0f7e3ac086c2fe5c6eda3466d108a930ea479074 (diff) | |
Fix Fl_RGB_Image::uncache() and Fl_Bitmap::uncache().
It is not possible to use fl_graphics_driver in these functions
because when they are called *fl_graphics_driver may have been
deleted. A solution is to use Fl_Display_Device::display_device()->driver()
instead which is always valid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Image.cxx')
| -rw-r--r-- | src/Fl_Image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index 32d05fe02..f11be8ae8 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -289,7 +289,7 @@ Fl_RGB_Image::~Fl_RGB_Image() { } void Fl_RGB_Image::uncache() { - fl_graphics_driver->uncache(this, id_, mask_); + Fl_Display_Device::display_device()->driver()->uncache(this, id_, mask_); } Fl_Image *Fl_RGB_Image::copy(int W, int H) { |
