aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorNikola Pavlica <pavlica.nikola@gmail.com>2021-01-14 15:01:52 +0100
committerGerd Hoffmann <kraxel@redhat.com>2021-01-15 11:22:42 +0100
commit0fdc99775c03cd31d5e99c8608113ac00ff6266b (patch)
tree4e9594db7dbffd862c9f0029713ab4723008fa80 /ui
parent3c4b8f8310ad9fae3c0b36f1e871e2f9b5973550 (diff)
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 <pavlica.nikola@gmail.com> Message-Id: <20210114140153.301473-2-pavlica.nikola@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index d2004a4dc1..26665cd2e6 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -752,7 +752,7 @@ static void gd_resize_event(GtkGLArea *area,
* If available, return the update interval of the monitor in ms,
* else return 0 (the default update interval).
*/
-static int gd_monitor_update_interval(GtkWidget *widget)
+int gd_monitor_update_interval(GtkWidget *widget)
{
#ifdef GDK_VERSION_3_22
GdkWindow *win = gtk_widget_get_window(widget);