summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-03 08:32:16 +0000
committerManolo Gouy <Manolo>2016-03-03 08:32:16 +0000
commit8bd3ea6c8ac066002b035f10f3657449f6beadb1 (patch)
treeb4f8a783fc28295b6cc234d008832b5e707aab6f /FL
parent78a539f69538e621f6e05ba4373508a8767705e8 (diff)
A hopefully clearer implementation of the fl_XXX_offscreen() functions.
The Xlib driver is tricky because it uses two kinds of offscreen buffers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Image_Surface.H5
-rw-r--r--FL/x.H1
2 files changed, 2 insertions, 4 deletions
diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H
index 3236addd5..f556ed549 100644
--- a/FL/Fl_Image_Surface.H
+++ b/FL/Fl_Image_Surface.H
@@ -47,9 +47,6 @@
*/
class FL_EXPORT Fl_Image_Surface : public Fl_Widget_Surface {
friend Fl_Offscreen fl_create_offscreen(int w, int h);
-#ifndef FL_DOXYGEN
- friend Fl_Offscreen fl_create_offscreen_with_alpha(int, int);//X11 only
-#endif
friend void fl_begin_offscreen(Fl_Offscreen ctx);
friend void fl_end_offscreen(void);
friend void fl_delete_offscreen(Fl_Offscreen ctx);
@@ -62,6 +59,7 @@ protected:
void untranslate();
public:
Fl_Image_Surface(int w, int h, int high_res = 0);
+ Fl_Image_Surface(Fl_Offscreen off, int w, int h);
~Fl_Image_Surface();
void set_current();
void end_current();
@@ -70,6 +68,7 @@ public:
void origin(int *x, int *y);
void origin(int x, int y);
int printable_rect(int *w, int *h);
+ Fl_Offscreen get_offscreen_before_delete();
};
#endif // Fl_Image_Surface_H
diff --git a/FL/x.H b/FL/x.H
index aca9749a4..7473df78b 100644
--- a/FL/x.H
+++ b/FL/x.H
@@ -96,7 +96,6 @@ extern FL_EXPORT const XEvent* fl_xevent;
extern FL_EXPORT ulong fl_event_time;
typedef ulong Fl_Offscreen;
-extern FL_EXPORT Fl_Offscreen fl_create_offscreen_with_alpha(int,int);
// Bitmap masks
typedef ulong Fl_Bitmask;