summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Bitmap.H6
-rw-r--r--FL/Fl_Image.H6
-rw-r--r--FL/Fl_Pixmap.H3
-rw-r--r--FL/Fl_SVG_Image.H3
4 files changed, 10 insertions, 8 deletions
diff --git a/FL/Fl_Bitmap.H b/FL/Fl_Bitmap.H
index dd3fe392d..9bd648292 100644
--- a/FL/Fl_Bitmap.H
+++ b/FL/Fl_Bitmap.H
@@ -34,7 +34,6 @@ struct Fl_Menu_Item;
class FL_EXPORT Fl_Bitmap : public Fl_Image {
friend class Fl_Graphics_Driver;
public:
-
/** pointer to raw bitmap data */
const uchar *array;
/** Non-zero if array points to bitmap data allocated internally */
@@ -46,10 +45,11 @@ private:
/** for internal use */
fl_uintptr_t id_;
float cache_scale_; // graphics scaling value when id_ was computed
- virtual int draw_scaled_(int X, int Y, int W, int H);
+
+protected:
+ virtual int draw_scaled(int X, int Y, int W, int H);
public:
-
/** The constructors create a new bitmap from the specified bitmap data */
Fl_Bitmap(const uchar *bits, int W, int H) :
Fl_Image(W,H,0), array(bits), alloc_array(0), id_(0), cache_scale_(1) {data((const char **)&array, 1);}
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H
index ae626772c..f338500cd 100644
--- a/FL/Fl_Image.H
+++ b/FL/Fl_Image.H
@@ -69,7 +69,6 @@ private:
// Forbid use of copy constructor and assign operator
Fl_Image & operator=(const Fl_Image &);
Fl_Image(const Fl_Image &);
- virtual int draw_scaled_(int X, int Y, int W, int H);
protected:
@@ -105,6 +104,7 @@ protected:
static void labeltype(const Fl_Label *lo, int lx, int ly, int lw, int lh, Fl_Align la);
static void measure(const Fl_Label *lo, int &lw, int &lh);
+ virtual int draw_scaled(int X, int Y, int W, int H);
public:
@@ -225,7 +225,9 @@ private:
fl_uintptr_t id_;
fl_uintptr_t mask_;
float cache_scale_; // graphics scaling value when id_ was computed
- virtual int draw_scaled_(int X, int Y, int W, int H);
+
+protected:
+ virtual int draw_scaled(int X, int Y, int W, int H);
public:
diff --git a/FL/Fl_Pixmap.H b/FL/Fl_Pixmap.H
index a80b4d27a..d7104863c 100644
--- a/FL/Fl_Pixmap.H
+++ b/FL/Fl_Pixmap.H
@@ -42,11 +42,10 @@ class FL_EXPORT Fl_Pixmap : public Fl_Image {
void set_data(const char * const *p);
int prepare(int XP, int YP, int WP, int HP, int &cx, int &cy,
int &X, int &Y, int &W, int &H);
- virtual int draw_scaled_(int X, int Y, int W, int H);
protected:
-
void measure();
+ virtual int draw_scaled(int X, int Y, int W, int H);
public:
diff --git a/FL/Fl_SVG_Image.H b/FL/Fl_SVG_Image.H
index 6467f4d3f..0965b2639 100644
--- a/FL/Fl_SVG_Image.H
+++ b/FL/Fl_SVG_Image.H
@@ -59,8 +59,9 @@ private:
float svg_scaling_(int W, int H);
void rasterize_(int W, int H);
void init_(const char *filename, char *filedata, Fl_SVG_Image *copy_source);
- virtual int draw_scaled_(int X, int Y, int W, int H);
Fl_SVG_Image(Fl_SVG_Image *source);
+protected:
+ virtual int draw_scaled(int X, int Y, int W, int H);
public:
/** Set this to \c false to allow image re-scaling that alters the image aspect ratio.
Upon object creation, \c proportional is set to \c true, and the aspect ratio is kept constant.*/