diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-20 03:13:56 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-20 03:13:56 +0000 |
| commit | 8276f8b3079d1fb772e6120bc36c6bb39b28fd67 (patch) | |
| tree | a0427da3ed70c77572451ea3a389f0d170635a11 | |
| parent | e50a290d8afcc7d211d426077b6c21af0f49ecfe (diff) | |
Implement Fl_Shared_Image::uncache().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | FL/Fl_Shared_Image.H | 5 | ||||
| -rw-r--r-- | src/Fl_Shared_Image.cxx | 15 |
3 files changed, 17 insertions, 4 deletions
@@ -1,5 +1,6 @@ CHANGES IN FLTK 1.1.1 + - Fl_Shared_Image::uncache() was not implemented. - Fl::set_font() didn't 0-initialize all font descriptor data. - Some OpenGL implementations don't support single- diff --git a/FL/Fl_Shared_Image.H b/FL/Fl_Shared_Image.H index ee3327d31..572c49798 100644 --- a/FL/Fl_Shared_Image.H +++ b/FL/Fl_Shared_Image.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Shared_Image.H,v 1.22.2.7 2002/08/14 16:19:48 easysw Exp $" +// "$Id: Fl_Shared_Image.H,v 1.22.2.8 2002/10/20 03:13:56 easysw Exp $" // // Shared image header file for the Fast Light Tool Kit (FLTK). // @@ -72,6 +72,7 @@ class FL_EXPORT Fl_Shared_Image : public Fl_Image { virtual void desaturate(); virtual void draw(int X, int Y, int W, int H, int cx, int cy); void draw(int X, int Y) { draw(X, Y, w(), h(), 0, 0); } + virtual void uncache(); static Fl_Shared_Image *find(const char *n, int W = 0, int H = 0); static Fl_Shared_Image *get(const char *n, int W = 0, int H = 0); @@ -92,5 +93,5 @@ FL_EXPORT extern void fl_register_images(); #endif // !Fl_Shared_Image_H // -// End of "$Id: Fl_Shared_Image.H,v 1.22.2.7 2002/08/14 16:19:48 easysw Exp $" +// End of "$Id: Fl_Shared_Image.H,v 1.22.2.8 2002/10/20 03:13:56 easysw Exp $" // diff --git a/src/Fl_Shared_Image.cxx b/src/Fl_Shared_Image.cxx index 586767442..2712d1fbc 100644 --- a/src/Fl_Shared_Image.cxx +++ b/src/Fl_Shared_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Shared_Image.cxx,v 1.23.2.17 2002/10/11 14:17:24 easysw Exp $" +// "$Id: Fl_Shared_Image.cxx,v 1.23.2.18 2002/10/20 03:13:56 easysw Exp $" // // Shared image code for the Fast Light Tool Kit (FLTK). // @@ -334,6 +334,17 @@ Fl_Shared_Image::draw(int X, int Y, int W, int H, int cx, int cy) { // +// 'Fl_Shared_Image::uncache()' - Uncache the shared image... +// + +void +Fl_Shared_Image::uncache() +{ + if (image_) image_->uncache(); +} + + +// // 'Fl_Shared_Image::find()' - Find a shared image... // @@ -455,5 +466,5 @@ Fl_Shared_Image::remove_handler(Fl_Shared_Handler f) { // -// End of "$Id: Fl_Shared_Image.cxx,v 1.23.2.17 2002/10/11 14:17:24 easysw Exp $". +// End of "$Id: Fl_Shared_Image.cxx,v 1.23.2.18 2002/10/20 03:13:56 easysw Exp $". // |
