diff options
| author | Manolo Gouy <Manolo> | 2016-03-31 06:47:15 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-31 06:47:15 +0000 |
| commit | 3ca402b609deca8872bab22e379a4131e3ba41ba (patch) | |
| tree | aa9cf837886b3b25b2e5a61f42d0b87301ce8b0f /src/Fl_x.cxx | |
| parent | 059664e7d4c6230b4fe799bd01bc6e630835c05c (diff) | |
Continue removing platform-dependent code from the Fl.H header file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 0822202bc..a00edb443 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1021,14 +1021,14 @@ static unsigned char *create_bmp(const unsigned char *data, int W, int H, int *r return b; } -void Fl::copy_image(const unsigned char *data, int W, int H, int clipboard){ - if(!data || W<=0 || H<=0) return; +// takes a raw RGB image and puts it in the copy/paste buffer +void Fl_X::copy_image(const unsigned char *data, int W, int H, int clipboard){ + if (!data || W <= 0 || H <= 0) return; delete[] fl_selection_buffer[clipboard]; fl_selection_buffer[clipboard] = (char *) create_bmp(data,W,H,&fl_selection_length[clipboard]); fl_selection_buffer_length[clipboard] = fl_selection_length[clipboard]; fl_i_own_selection[clipboard] = 1; fl_selection_type[clipboard] = Fl::clipboard_image; - Atom property = clipboard ? CLIPBOARD : XA_PRIMARY; XSetSelectionOwner(fl_display, property, fl_message_window, fl_event_time); } |
