From e82e430c3b764e869b5592bb456bf0a76a8d74e2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 11 Mar 2018 08:33:36 +0000 Subject: Documentation of fl_create_offscreen: give more details useful because the screen scale factor can now vary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image_Surface.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Fl_Image_Surface.cxx') diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx index 9e73c4645..bf115dcfa 100644 --- a/src/Fl_Image_Surface.cxx +++ b/src/Fl_Image_Surface.cxx @@ -140,8 +140,12 @@ static int find_slot(void) { // return an available slot to memorize an Fl_Image /** Creation of an offscreen graphics buffer. - \param w,h width and height in pixels of the buffer. + \param w,h width and height in FLTK units of the buffer. \return the created graphics buffer. + + The pixel size of the created graphics buffer is equal to the number of pixels + in an area of the screen containing the current window sized at \p w,h FLTK units. + This pixel size varies with the value of the scale factor of this screen. */ Fl_Offscreen fl_create_offscreen(int w, int h) { int rank = find_slot(); -- cgit v1.2.3