From 0fdc99775c03cd31d5e99c8608113ac00ff6266b Mon Sep 17 00:00:00 2001 From: Nikola Pavlica Date: Thu, 14 Jan 2021 15:01:52 +0100 Subject: ui/gtk: expose gd_monitor_update_interval The gd_egl_refresh function, as the name suggests, is responsible for refreshing displays when using EGL graphics with QEMU's GTK UI. This is a perfect candidate for a function to update the refresh rate in. Since gd_monitor_update_interval is inaccessible from the gd_egl_refresh function, we need to expose/globalize it in the include/ui/gtk.h file. Signed-off-by: Nikola Pavlica Message-Id: <20210114140153.301473-2-pavlica.nikola@gmail.com> Signed-off-by: Gerd Hoffmann --- include/ui/gtk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ui/gtk.h b/include/ui/gtk.h index 80851fb..3f395d7 100644 --- a/include/ui/gtk.h +++ b/include/ui/gtk.h @@ -86,6 +86,7 @@ extern bool gtk_use_gl_area; /* ui/gtk.c */ void gd_update_windowsize(VirtualConsole *vc); +int gd_monitor_update_interval(GtkWidget *widget); /* ui/gtk-egl.c */ void gd_egl_init(VirtualConsole *vc); -- cgit v1.1