diff options
| author | Manolo Gouy <Manolo> | 2018-04-14 13:37:47 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-04-14 13:37:47 +0000 |
| commit | bfac5462be7da58bc84032462307a150314b669a (patch) | |
| tree | 7acbb7b48f186d40e24be1dac62ddac5ff5598c3 /src/Fl_Pixmap.cxx | |
| parent | 2abe8bd413f97da1beb5c144e1a1f6cb3db25290 (diff) | |
Remove Fl_Pixmap::prepare() and Fl_Bitmap::prepare() that were used only once.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Pixmap.cxx')
| -rw-r--r-- | src/Fl_Pixmap.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index d7b837915..699b136af 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -50,25 +50,6 @@ void Fl_Pixmap::draw(int XP, int YP, int WP, int HP, int cx, int cy) { fl_graphics_driver->draw_pixmap(this, XP, YP, WP, HP, cx, cy); } - -int Fl_Pixmap::prepare(int XP, int YP, int WP, int HP, int &cx, int &cy, - int &X, int &Y, int &W, int &H) { - if (w() < 0) measure(); - if (!data() || !w()) { - draw_empty(XP, YP); - return 1; - } - if (WP == -1) { - WP = w(); - HP = h(); - } - if ( fl_graphics_driver->start_image(this, XP,YP,WP,HP,cx,cy,X,Y,W,H) ) return 1; - if (!id_) { - fl_graphics_driver->cache(this); - } - return 0; -} - /** The destructor frees all memory and server resources that are used by the pixmap. |
