diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-11-16 15:03:36 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-11-16 15:03:36 +0100 |
| commit | 397226b75d0c2eb8bc7ecb25f6aa0c496ee08b60 (patch) | |
| tree | a72db93bc323a3d786be8e8de0096c8c1a61fec5 /src | |
| parent | af0bb7e6c968a9c51baefbaba9fd3ea59753d545 (diff) | |
Add use of fl_capture_window() by test/device
Also, rename fl_capture_window_part() to fl_capture_window().
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Screen_Driver.H | 2 | ||||
| -rw-r--r-- | src/fl_read_image.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Screen_Driver.H b/src/Fl_Screen_Driver.H index c160f8a5e..8bff6fa62 100644 --- a/src/Fl_Screen_Driver.H +++ b/src/Fl_Screen_Driver.H @@ -149,7 +149,7 @@ public: virtual void release_keyboard() {} /* Member function read_win_rectangle() supports public functions - fl_read_image() and fl_capture_window_part() which capture pixel data from + fl_read_image() and fl_capture_window() which capture pixel data from a window (or also from an offscreen buffer with fl_read_image). If 'may_capture_subwins' is true, an implementation may or may not capture diff --git a/src/fl_read_image.cxx b/src/fl_read_image.cxx index de6907fe4..129aeaa54 100644 --- a/src/fl_read_image.cxx +++ b/src/fl_read_image.cxx @@ -35,7 +35,7 @@ and the value that is placed in the alpha channel. If 0, no alpha channel is generated. - \see fl_capture_window_part() + \see fl_capture_window() */ uchar *fl_read_image(uchar *p, int X, int Y, int w, int h, int alpha) { uchar *image_data = NULL; @@ -96,7 +96,7 @@ uchar *fl_read_image(uchar *p, int X, int Y, int w, int h, int alpha) { The image depth may differ between platforms. \version 1.4 */ -Fl_RGB_Image *fl_capture_window_part(Fl_Window *win, int x, int y, int w, int h) +Fl_RGB_Image *fl_capture_window(Fl_Window *win, int x, int y, int w, int h) { Fl_RGB_Image *rgb = NULL; if (win->shown()) { |
