diff options
| author | Lauri Kasanen <cand@gmx.com> | 2015-03-16 18:12:28 +0000 |
|---|---|---|
| committer | Lauri Kasanen <cand@gmx.com> | 2015-03-16 18:12:28 +0000 |
| commit | c91e48149beda4538d47e5a3a3c393f7690d2aa4 (patch) | |
| tree | 5555484e4251f56a891b6541ff555868aefadadc /FL | |
| parent | 4798d70ded21f88109944bdb525d978bf74fb36d (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Device.H | 3 | ||||
| -rw-r--r-- | FL/x.H | 1 |
2 files changed, 4 insertions, 0 deletions
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 @@ -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; \ |
