From 397226b75d0c2eb8bc7ecb25f6aa0c496ee08b60 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 16 Nov 2021 15:03:36 +0100 Subject: Add use of fl_capture_window() by test/device Also, rename fl_capture_window_part() to fl_capture_window(). --- src/Fl_Screen_Driver.H | 2 +- src/fl_read_image.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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()) { -- cgit v1.2.3