summaryrefslogtreecommitdiffstats
path: root/include/ui/gtk.h
diff options
context:
space:
mode:
authorGerd Hoffmann2018-03-06 10:09:46 +0100
committerGerd Hoffmann2018-03-12 09:00:34 +0100
commit11c82b584a4578f7c7e408448c9f61c729acabae (patch)
treebe9aff7eda1c0d2a34c08983b6144142fd05902c /include/ui/gtk.h
parentsdl: workaround bug in sdl 2.0.8 headers (diff)
downloadqemu-11c82b584a4578f7c7e408448c9f61c729acabae.tar.gz
qemu-11c82b584a4578f7c7e408448c9f61c729acabae.tar.xz
qemu-11c82b584a4578f7c7e408448c9f61c729acabae.zip
ui/gtk: make GtkGlArea usage a runtime option
Compile in both gtk-egl and gtk-gl-area, then allow to choose at runtime instead of compile time which opengl variant we want use. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180306090951.22932-2-kraxel@redhat.com
Diffstat (limited to 'include/ui/gtk.h')
-rw-r--r--include/ui/gtk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/gtk.h b/include/ui/gtk.h
index 849c896eef..f6dafc5961 100644
--- a/include/ui/gtk.h
+++ b/include/ui/gtk.h
@@ -90,6 +90,8 @@ typedef struct VirtualConsole {
};
} VirtualConsole;
+extern bool gtk_use_gl_area;
+
/* ui/gtk.c */
void gd_update_windowsize(VirtualConsole *vc);