diff options
| author | Filip Hejsek <filip.hejsek@gmail.com> | 2025-09-13 00:58:35 +0200 |
|---|---|---|
| committer | Michael Tokarev <mjt@tls.msk.ru> | 2025-10-05 09:46:06 +0300 |
| commit | c187a67c9dcdece58138f4df5ca4dd846934eddc (patch) | |
| tree | 4c64eb39e53052441310b0c7edcd77e5b9bb403c /ui/gtk.c | |
| parent | bd6aa0d1e59d71218c3eee055bc8d222c6e1a628 (diff) | |
| download | focaccia-qemu-c187a67c9dcdece58138f4df5ca4dd846934eddc.tar.gz focaccia-qemu-c187a67c9dcdece58138f4df5ca4dd846934eddc.zip | |
ui/gtk: Fix callback function signature
The correct type for opaque pointer is gpointer, not gpointer * (which is a pointer to a pointer). Signed-off-by: Filip Hejsek <filip.hejsek@gmail.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'ui/gtk.c')
| -rw-r--r-- | ui/gtk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk.c b/ui/gtk.c index 9a08cadc88..48571bedbf 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -766,9 +766,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)); |