Add Fl_Android_Graphics_Driver::delete_bitmask() needed to uncache a cached Fl_Bitmap image.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-04-16 07:59:49 +00:00
parent f089bd6445
commit a70846730b
2 changed files with 6 additions and 3 deletions

View File

@ -87,11 +87,11 @@ protected:
/** Support function for image drawing */
virtual Fl_Bitmask create_bitmask(int w, int h, const uchar *array) {return 0; }
/** Support function for image drawing */
virtual void delete_bitmask(Fl_Bitmask bm) {}
#endif
// Support function for image drawing
virtual void uncache_pixmap(fl_uintptr_t p) override;
// Support function for image drawing
virtual void delete_bitmask(Fl_Bitmask bm) override;
public:
/** Constructor, C++11 initialises member variables in-line */
Fl_Android_Graphics_Driver();

View File

@ -1005,7 +1005,10 @@ void Fl_Android_Graphics_Driver::cache(Fl_Bitmap *bm)
*Fl_Graphics_Driver::id(bm) = (fl_uintptr_t)cache;
}
void Fl_Android_Graphics_Driver::delete_bitmask(Fl_Bitmask bm)
{
delete (Fl_Android_Bytemap*)bm;
}
void Fl_Android_Graphics_Driver::cache(Fl_Pixmap *img)
{