FLTK logo

[master] 5227ee0 - Remove un-necessary Fl_Wayland_Gl_Window_Driver::capture_gl_rectangle().

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] 5227ee0 - Remove un-necessary Fl_Wayland_Gl_Window_Driver::capture_gl_rectangle(). "ManoloFLTK" Aug 18, 2022  
 
commit 5227ee09a3fdd7d555f56cf7c9053dc42638d6cb
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu Aug 18 08:10:26 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu Aug 18 08:10:26 2022 +0200

    Remove un-necessary Fl_Wayland_Gl_Window_Driver::capture_gl_rectangle().

 src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.H   | 1 -
 src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx | 8 --------
 2 files changed, 9 deletions(-)

diff --git src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.H src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.H
index 2dcc0c2..7c4a1c6 100644
--- src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.H
+++ src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.H
@@ -52,7 +52,6 @@ class Fl_Wayland_Gl_Window_Driver : public Fl_Gl_Window_Driver {
   virtual void redraw_overlay();
   virtual void gl_start();
   virtual void gl_visual(Fl_Gl_Choice *c);
-  virtual Fl_RGB_Image* capture_gl_rectangle(int x, int y, int w, int h);
   char *alpha_mask_for_string(const char *str, int n, int w, int h, Fl_Fontsize fs);
   static EGLDisplay egl_display;
   static EGLint configs_count;
diff --git src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index 43599b2..db42a71 100644
--- src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
@@ -407,12 +407,4 @@ void Fl_Wayland_Gl_Window_Driver::gl_start() {
   glClear(GL_COLOR_BUFFER_BIT);
 }
 
-
-Fl_RGB_Image* Fl_Wayland_Gl_Window_Driver::capture_gl_rectangle(int x, int y, int w, int h) {
-  Fl_Surface_Device::push_current(Fl_Display_Device::display_device());
-  Fl_RGB_Image *rgb = Fl_Gl_Window_Driver::capture_gl_rectangle(x, y, w, h);
-  Fl_Surface_Device::pop_current();
-  return rgb;
-}
-
 #endif // HAVE_GL
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'.