diff options
| author | Manolo Gouy <Manolo> | 2017-09-09 12:35:06 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-09-09 12:35:06 +0000 |
| commit | 8e558595e653543dcc39ed079aaa9f8d87479fdc (patch) | |
| tree | 9e407cbd130107e40b4a68f61e6e94cea336f7c3 /FL/Fl_Bitmap.H | |
| parent | ae983b74f271c2466804b1a9ab071a4fc8b1b4d0 (diff) | |
Make virtual member function Fl_Image::draw_scaled(int X, int Y, int W, int H) protected rather than private.
Consequently, remove the trailing _ from its name reserved for private class members.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Bitmap.H')
| -rw-r--r-- | FL/Fl_Bitmap.H | 6 |
1 files changed, 3 insertions, 3 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);} |
