mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
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:
@@ -140,8 +140,12 @@ static int find_slot(void) { // return an available slot to memorize an Fl_Image
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Creation of an offscreen graphics buffer.
|
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.
|
\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) {
|
Fl_Offscreen fl_create_offscreen(int w, int h) {
|
||||||
int rank = find_slot();
|
int rank = find_slot();
|
||||||
|
|||||||
Reference in New Issue
Block a user