FLTK logo

[master] c749349 - Wayland platform: add support of FL_ALPHA for GL windows.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] c749349 - Wayland platform: add support of FL_ALPHA for GL windows. "ManoloFLTK" Jul 02, 2022  
 
commit c7493496c91f17390ea6f958b0ec33947f0cb817
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Jul 2 16:43:27 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Jul 2 16:43:27 2022 +0200

    Wayland platform: add support of FL_ALPHA for GL windows.

 src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index fad32cb..b37e0c4 100644
--- src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
@@ -126,12 +126,14 @@ Fl_Gl_Choice *Fl_Wayland_Gl_Window_Driver::find(int m, const int *alistp)
     EGL_DEPTH_SIZE, 0, // set at 11
     EGL_SAMPLE_BUFFERS, 0,  // set at 13
     EGL_STENCIL_SIZE, 0, // set at 15
+    EGL_ALPHA_SIZE, 0, // set at 17
     EGL_NONE
   };
 
   if (m & FL_DEPTH) config_attribs[11] = 1;
   if (m & FL_MULTISAMPLE) config_attribs[13] = 1;
   if (m & FL_STENCIL) config_attribs[15] = 1;
+  if (m & FL_ALPHA) config_attribs[17] = (m & FL_RGB8) ? 8 : 1;
 
   static EGLConfig *configs = (void**)calloc(configs_count, sizeof(EGLConfig));
   eglChooseConfig(egl_display, config_attribs, configs, configs_count, &n);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.