From bfac5462be7da58bc84032462307a150314b669a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 14 Apr 2018 13:37:47 +0000 Subject: 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 --- src/Fl_Pixmap.cxx | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/Fl_Pixmap.cxx') 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. -- cgit v1.2.3