summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-04-24 19:58:07 +0000
committerManolo Gouy <Manolo>2017-04-24 19:58:07 +0000
commitcd8909f90395c8f10d5cbb7d82c481a57f922c83 (patch)
tree1d9d66e7e163ec871afffd79154ef8115070e4aa /src
parent05b9f2bc980d69e75620c1c010c5997282ff9080 (diff)
Slight improvement of Fl_Image_Surface::image()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Image_Surface.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx
index b8b50a2bc..53448fd29 100644
--- a/src/Fl_Image_Surface.cxx
+++ b/src/Fl_Image_Surface.cxx
@@ -78,8 +78,8 @@ int Fl_Image_Surface::printable_rect(int *w, int *h) {return platform_surface->
The caller is responsible for deleting the image.
*/
Fl_RGB_Image *Fl_Image_Surface::image() {
- bool need_push = (Fl_Surface_Device::surface() != this);
- if (need_push) Fl_Surface_Device::push_current(this);
+ bool need_push = (Fl_Surface_Device::surface() != platform_surface);
+ if (need_push) Fl_Surface_Device::push_current(platform_surface);
Fl_RGB_Image *img = platform_surface->image();
if (need_push) Fl_Surface_Device::pop_current();
return img;