From fe25f19767f1cd2393c4d1796fb42d5aa82b194c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 24 Jan 2011 17:04:22 +0000 Subject: Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Shared_Image.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FL/Fl_Shared_Image.H') diff --git a/FL/Fl_Shared_Image.H b/FL/Fl_Shared_Image.H index dd134947d..9a6134dc9 100644 --- a/FL/Fl_Shared_Image.H +++ b/FL/Fl_Shared_Image.H @@ -47,7 +47,11 @@ typedef Fl_Image *(*Fl_Shared_Handler)(const char *name, uchar *header, function to support standard image formats such as BMP, GIF, JPEG, and PNG. */ class FL_EXPORT Fl_Shared_Image : public Fl_Image { - protected: + + friend class Fl_JPEG_Image; + friend class Fl_PNG_Image; + +protected: static Fl_Shared_Image **images_; // Shared images static int num_images_; // Number of shared images -- cgit v1.2.3