summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-08-27 08:06:16 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-08-27 08:06:16 +0200
commit7e3aabf80eff2c93c5d9d77f4022e69bc75097ff (patch)
tree488305e1ee891779fd5e401b955f5798be7d90c1 /src
parent2f5e1b223040a930dd4836e351c518dc3b14ed10 (diff)
Remove useless function prototype declaration
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
index 1dcc3cc04..f738a88a5 100644
--- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
@@ -86,26 +86,25 @@ struct Fl_Wayland_Graphics_Driver::wld_buffer *
// used to support both normal and progressive drawing
-static void surface_frame_done(void *data, struct wl_callback *cb, uint32_t time);
-
-static const struct wl_callback_listener surface_frame_listener = {
- .done = surface_frame_done,
-};
-
static void surface_frame_done(void *data, struct wl_callback *cb, uint32_t time) {
struct wld_window *window = (struct wld_window *)data;
-//fprintf(stderr,"surface_frame_done: destroy cb=%p draw_buffer_needs_commit=%d\n", cb, window->buffer->draw_buffer_needs_commit);
+//fprintf(stderr,"surface_frame_done: draw_buffer_needs_commit=%d\n", window->buffer->draw_buffer_needs_commit);
wl_callback_destroy(cb);
if (window->buffer) { // fix for issue #712
window->buffer->cb = NULL;
if (window->buffer->draw_buffer_needs_commit) {
- //fprintf(stderr,"surface_frame_done: new cb=%p \n", window->buffer->cb);
+ //fprintf(stderr,"surface_frame_done calls buffer_commit\n");
Fl_Wayland_Graphics_Driver::buffer_commit(window);
}
}
}
+static const struct wl_callback_listener surface_frame_listener = {
+ .done = surface_frame_done,
+};
+
+
// copy pixels in region r from the Cairo surface to the Wayland buffer
static void copy_region(struct wld_window *window, struct flCairoRegion *r) {
struct Fl_Wayland_Graphics_Driver::wld_buffer *buffer = window->buffer;