From 458d0636436b5f25e444dc285007dceac296c2ee Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 28 Mar 2018 13:00:12 +0000 Subject: Image classes: memorise the width and the height of the cached form of the image to support GUI scaling git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Image.cxx') diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index 4cc6a8603..b1b8b64d7 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -349,7 +349,7 @@ Fl_RGB_Image::Fl_RGB_Image(const uchar *bits, int W, int H, int D, int LD) : alloc_array(0), id_(0), mask_(0), - cache_scale_(1) + cache_w_(0), cache_h_(0) { data((const char **)&array, 1); ld(LD); @@ -372,7 +372,7 @@ Fl_RGB_Image::Fl_RGB_Image(const Fl_Pixmap *pxm, Fl_Color bg): alloc_array(0), id_(0), mask_(0), - cache_scale_(1) + cache_w_(0), cache_h_(0) { if (pxm && pxm->w() > 0 && pxm->h() > 0) { array = new uchar[w() * h() * d()]; -- cgit v1.2.3