From c91e48149beda4538d47e5a3a3c393f7690d2aa4 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Mon, 16 Mar 2015 18:12:28 +0000 Subject: Add support for accelerated alpha blending under X11. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 3 +++ FL/x.H | 1 + 2 files changed, 4 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 4d048d179..df66e7a75 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -525,6 +525,9 @@ public: int height(); int descent(); void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy); +#if ! defined(FL_DOXYGEN) + void copy_offscreen_with_alpha(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy); +#endif }; #endif diff --git a/FL/x.H b/FL/x.H index f1f23f918..336acff9e 100644 --- a/FL/x.H +++ b/FL/x.H @@ -84,6 +84,7 @@ extern FL_EXPORT ulong fl_event_time; // off-screen pixmaps: create, destroy, draw into, copy to window: typedef ulong Fl_Offscreen; # define fl_create_offscreen(w,h) XCreatePixmap(fl_display, RootWindow(fl_display, fl_screen), w, h, fl_visual->depth) +# define fl_create_offscreen_with_alpha(w,h) XCreatePixmap(fl_display, RootWindow(fl_display, fl_screen), w, h, 32) // begin/end are macros that save the old state in local variables: # define fl_begin_offscreen(pixmap) \ Window _sw=fl_window; fl_window=pixmap; \ -- cgit v1.2.3