summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Device_Plugin.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-11-30 09:01:12 +0000
committerManolo Gouy <Manolo>2018-11-30 09:01:12 +0000
commitc33d3c6aaa15580e195a176b9803799ecc847ef6 (patch)
tree937d8fbf8476c79353d4c7ff8ec721ffd1368a36 /src/Fl_Gl_Device_Plugin.cxx
parentb511f6a7a4f02cad8731c7e514f2778444a066fa (diff)
Remove unused arguments from the Fl_Device_Plugin::print() member function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Device_Plugin.cxx')
-rw-r--r--src/Fl_Gl_Device_Plugin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Gl_Device_Plugin.cxx b/src/Fl_Gl_Device_Plugin.cxx
index ee827aef5..2f7612c2c 100644
--- a/src/Fl_Gl_Device_Plugin.cxx
+++ b/src/Fl_Gl_Device_Plugin.cxx
@@ -30,12 +30,12 @@ class Fl_Gl_Device_Plugin : public Fl_Device_Plugin {
public:
Fl_Gl_Device_Plugin() : Fl_Device_Plugin(name()) { }
virtual const char *name() { return "opengl.device.fltk.org"; }
- virtual int print(Fl_Widget *w, int x, int y, int height /*useless*/) {
+ virtual int print(Fl_Widget *w) {
Fl_Gl_Window *glw = w->as_gl_window();
if (!glw) return 0;
Fl_RGB_Image *img = Fl_OpenGL_Display_Device::capture_gl_rectangle(glw, 0, 0, glw->w(), glw->h());
img->scale(glw->w(), glw->h());
- img->draw(x, y);
+ img->draw(0, 0);
delete img;
return 1;
}
@@ -44,9 +44,9 @@ public:
if (!glw) return NULL;
return Fl_OpenGL_Display_Device::capture_gl_rectangle(glw, x, y, w, h);
}
- virtual GLContext context(Fl_Window *window) {
- Fl_Gl_Window *glw = window->as_gl_window();
- return glw ? glw->context() : 0;
+ virtual GLContext context(Fl_Widget *widget) {
+ Fl_Gl_Window *glw = widget->as_gl_window();
+ return glw ? glw->context() : (GLContext)0;
}
};