From: Filip Hejsek <[email protected]> The correct type for opaque pointer is gpointer, not gpointer * (which is a pointer to a pointer).
Signed-off-by: Filip Hejsek <[email protected]> Reviewed-by: Alex Bennée <[email protected]> Reviewed-by: Michael Tokarev <[email protected]> Signed-off-by: Michael Tokarev <[email protected]> (cherry picked from commit c187a67c9dcdece58138f4df5ca4dd846934eddc) Signed-off-by: Michael Tokarev <[email protected]> diff --git a/ui/gtk.c b/ui/gtk.c index 2db10c46da..fe0a2249ff 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -769,9 +769,9 @@ static gboolean gd_render_event(GtkGLArea *area, GdkGLContext *context, } static void gd_resize_event(GtkGLArea *area, - gint width, gint height, gpointer *opaque) + gint width, gint height, gpointer opaque) { - VirtualConsole *vc = (void *)opaque; + VirtualConsole *vc = opaque; double pw = width, ph = height; double sx = vc->gfx.scale_x, sy = vc->gfx.scale_y; GdkWindow *window = gtk_widget_get_window(GTK_WIDGET(area)); -- 2.47.3
