Improve docs of Fl_Copy_Surface and use of OpenGL 3.

This commit is contained in:
ManoloFLTK
2022-09-21 15:15:55 +02:00
parent 75dd467dc5
commit debbba19ec
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@
\li Mac OS: The graphical data are copied to the clipboard (a.k.a. pasteboard) in two 'flavors':
1) in vectorial form as PDF data; 2) in bitmap form as a TIFF image.
Applications to which the clipboard content is pasted can use the flavor that suits them best.
\li X11: the graphical data are copied to the clipboard as an image in BMP format.
\li X11 and Wayland: the graphical data are copied to the clipboard as an image in BMP format.
*/
class FL_EXPORT Fl_Copy_Surface : public Fl_Widget_Surface {
private:

View File

@@ -628,7 +628,7 @@ Testing whether the glewInit() call is successful is to be done as follows:
GLenum err = glewInit(); // defines pters to functions of OpenGL V 1.2 and above
# ifdef FLTK_USE_WAYLAND
// glewInit returns GLEW_ERROR_NO_GLX_DISPLAY with Wayland
if (err == GLEW_ERROR_NO_GLX_DISPLAY) err = GLEW_OK;
if (fl_wl_display() && err == GLEW_ERROR_NO_GLX_DISPLAY) err = GLEW_OK;
# endif
if (err != GLEW_OK) Fl::warning("glewInit() failed returning %u", err);
#endif // ! __APPLE__