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
This commit is contained in:
Manolo Gouy
2018-03-11 08:33:36 +00:00
parent a45afd2b99
commit e82e430c3b
+5 -1
View File
@@ -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();