summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-04-12 15:06:21 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-04-12 15:06:21 +0200
commitbfae813c4e15ec0a45a7b2cdecf32c3aac2776eb (patch)
treed91e1a1e34a05a71e12a498751ae3c1cf3e3e829 /FL
parentfad867a5d37b5162255a338f5f5218ff852f8852 (diff)
Fix for issue #427: Problems with data_w, data_h, w, h of Fl_Image.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Image.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H
index a32b29c4a..828419a49 100644
--- a/FL/Fl_Image.H
+++ b/FL/Fl_Image.H
@@ -1,7 +1,7 @@
//
// Image header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2017 by Bill Spitzak and others.
+// Copyright 1998-2022 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -247,7 +247,7 @@ public:
\see Fl_Image::release()
\see Fl_Image::copy(int w, int h)
*/
- Fl_Image *copy() { Fl_Image *img = copy(data_w(), data_h()); img->scale(w(), h(), 0, 1); return img;}
+ Fl_Image *copy() { Fl_Image *img = copy(w(), h()); img->scale(w(), h(), 0, 1); return img;}
virtual void color_average(Fl_Color c, float i);
/**
The inactive() method calls