summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Copy_Surface.H4
-rw-r--r--FL/Fl_Image_Surface.H4
2 files changed, 8 insertions, 0 deletions
diff --git a/FL/Fl_Copy_Surface.H b/FL/Fl_Copy_Surface.H
index fa95f18cc..b24ee8b0a 100644
--- a/FL/Fl_Copy_Surface.H
+++ b/FL/Fl_Copy_Surface.H
@@ -84,6 +84,10 @@ protected:
int printable_rect(int *w, int *h) {*w = width; *h = height; return 0;}
virtual Fl_RGB_Image *image() {return NULL;}
virtual void end_current() {}
+ /** Each platform implements this function its own way.
+ It returns an object implementing all virtual functions
+ of class Fl_Copy_Surface_Driver for the plaform.
+ */
static Fl_Copy_Surface_Driver *newCopySurfaceDriver(int w, int h);
};
diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H
index f46e6dd3d..26da75643 100644
--- a/FL/Fl_Image_Surface.H
+++ b/FL/Fl_Image_Surface.H
@@ -107,6 +107,10 @@ protected:
int printable_rect(int *w, int *h) {*w = width; *h = height; return 0;}
virtual Fl_RGB_Image *image() {return NULL;}
virtual void end_current() {}
+ /** Each platform implements this function its own way.
+ It returns an object implementing all virtual functions
+ of class Fl_Image_Surface_Driver for the plaform.
+ */
static Fl_Image_Surface_Driver *newImageSurfaceDriver(int w, int h, int high_res, Fl_Offscreen off);
};