From bfae813c4e15ec0a45a7b2cdecf32c3aac2776eb Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 12 Apr 2022 15:06:21 +0200 Subject: Fix for issue #427: Problems with data_w, data_h, w, h of Fl_Image. --- FL/Fl_Image.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL/Fl_Image.H') 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 -- cgit v1.2.3