mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qapi/ui: Drop temporary 'prefix'
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added a temporary 'prefix' to delay changing the generated code. Revert it. This improves DisplayGLMode's generated enumeration constant prefix from DISPLAYGL_MODE to DISPLAY_GL_MODE. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240904111836.3273842-9-armbru@redhat.com>
This commit is contained in:
parent
0aa4bd6aeb
commit
154fd4d1a0
10 changed files with 21 additions and 22 deletions
4
ui/gtk.c
4
ui/gtk.c
|
@ -2514,7 +2514,7 @@ static void early_gtk_display_init(DisplayOptions *opts)
|
|||
}
|
||||
|
||||
assert(opts->type == DISPLAY_TYPE_GTK);
|
||||
if (opts->has_gl && opts->gl != DISPLAYGL_MODE_OFF) {
|
||||
if (opts->has_gl && opts->gl != DISPLAY_GL_MODE_OFF) {
|
||||
#if defined(CONFIG_OPENGL)
|
||||
#if defined(GDK_WINDOWING_WAYLAND)
|
||||
if (GDK_IS_WAYLAND_DISPLAY(gdk_display_get_default())) {
|
||||
|
@ -2530,7 +2530,7 @@ static void early_gtk_display_init(DisplayOptions *opts)
|
|||
#endif
|
||||
{
|
||||
#ifdef CONFIG_X11
|
||||
DisplayGLMode mode = opts->has_gl ? opts->gl : DISPLAYGL_MODE_ON;
|
||||
DisplayGLMode mode = opts->has_gl ? opts->gl : DISPLAY_GL_MODE_ON;
|
||||
gtk_egl_init(mode);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue