projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408015a
)
ui/dbus: fix build errors in dbus_update_gl_cb and dbus_call_update_gl
author
Richard Henderson
<richard.henderson@linaro.org>
Fri, 30 Jun 2023 17:38:06 +0000
(19:38 +0200)
committer
Richard Henderson
<richard.henderson@linaro.org>
Fri, 30 Jun 2023 21:15:29 +0000
(23:15 +0200)
Add some ifdefs to avoid an unused function and unused variable.
Fixes: de1f8ce0abb8 ("ui/dbus: use shared D3D11 Texture2D when possible")
Co-developed-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <
336f7697
-bcfa-1f5f-e411-
6859815aa26c
@eik.bme.hu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
ui/dbus-listener.c
patch
|
blob
|
history
diff --git
a/ui/dbus-listener.c
b/ui/dbus-listener.c
index e10162b279727de53b1aa3f8c42af6e08f32c8b3..0240c39510726aebad580111b43c7b8c030aad45 100644
(file)
--- a/
ui/dbus-listener.c
+++ b/
ui/dbus-listener.c
@@
-177,6
+177,7
@@
fail:
}
#endif /* WIN32 */
+#if defined(CONFIG_GBM) || defined(WIN32)
static void dbus_update_gl_cb(GObject *source_object,
GAsyncResult *res,
gpointer user_data)
@@
-203,11
+204,14
@@
static void dbus_update_gl_cb(GObject *source_object,
graphic_hw_gl_block(ddl->dcl.con, false);
g_object_unref(ddl);
}
+#endif
static void dbus_call_update_gl(DisplayChangeListener *dcl,
int x, int y, int w, int h)
{
+#if defined(CONFIG_GBM) || defined(WIN32)
DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);
+#endif
trace_dbus_update_gl(x, y, w, h);