summaryrefslogtreecommitdiff
path: root/FL/Fl_Image.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-03-28 13:00:12 +0000
committerManolo Gouy <Manolo>2018-03-28 13:00:12 +0000
commit458d0636436b5f25e444dc285007dceac296c2ee (patch)
tree88510e081d4f4199db92879b4a1960ea22204769 /FL/Fl_Image.H
parent29bda776bb78352b331771bd1169de31e4edc1be (diff)
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
Diffstat (limited to 'FL/Fl_Image.H')
-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 41783639d..0a590a1af 100644
--- a/FL/Fl_Image.H
+++ b/FL/Fl_Image.H
@@ -262,8 +262,8 @@ private:
// These two variables are used to cache the image and mask for the main display graphics driver
fl_uintptr_t id_;
fl_uintptr_t mask_;
- float cache_scale_; // graphics scaling value when id_ was computed
-
+ int cache_w_, cache_h_; // size of image when cached
+
public:
Fl_RGB_Image(const uchar *bits, int W, int H, int D=3, int LD=0);