diff options
| author | Manolo Gouy <Manolo> | 2018-03-11 08:33:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-03-11 08:33:36 +0000 |
| commit | e82e430c3b764e869b5592bb456bf0a76a8d74e2 (patch) | |
| tree | f5cce40a739f8970876a24ed2e502dfa31e25866 /src/Fl_Image_Surface.cxx | |
| parent | a45afd2b9966f66248df1c77febc720c3c26405a (diff) | |
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
Diffstat (limited to 'src/Fl_Image_Surface.cxx')
| -rw-r--r-- | src/Fl_Image_Surface.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |
