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_Pixmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Pixmap.cxx') diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index ca76362de..33c76233d 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -42,7 +42,7 @@ void Fl_Pixmap::measure() { if (w()<0 && data()) { fl_measure_pixmap(data(), W, H); w(W); h(H); - cache_scale_ = 1; + cache_w_ = cache_h_ = 0; } } -- cgit v1.2.3