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 /src/Fl_Image.cxx | |
| 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 'src/Fl_Image.cxx')
| -rw-r--r-- | src/Fl_Image.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx index a622f7d9e..efe980cb8 100644 --- a/src/Fl_Image.cxx +++ b/src/Fl_Image.cxx @@ -578,14 +578,17 @@ void Fl_RGB_Image::label(Fl_Menu_Item* m) { m->label(_FL_IMAGE_LABEL, (const char*)this); } -int Fl_RGB_Image::draw_scaled_(int X, int Y, int W, int H) { +int Fl_RGB_Image::draw_scaled(int X, int Y, int W, int H) { return fl_graphics_driver->draw_scaled(this, X, Y, W, H); } -// Draws the image scaled to W and H, and returns 1, -// or returns 0 if scaled drawing is not implemented for this image. -// Image classes can re-implement this function for specific image types. -int Fl_Image::draw_scaled_(int X, int Y, int W, int H) { +/** Attempts to draw the image to the current drawing surface rescaled to a given width and height. + This virtual member function is mostly intended for use by the FLTK library. + \param X,Y position of the image's top-left + \param W,H width and height for the drawn image + \return 0 if scaled drawing is not implemented for this image, non-zero if it is implemented. + */ +int Fl_Image::draw_scaled(int X, int Y, int W, int H) { return 0; } |
