Skip to content

Commit

Permalink
ui/dbus: fix build errors in dbus_update_gl_cb and dbus_call_update_gl
Browse files Browse the repository at this point in the history
Add some ifdefs to avoid an unused function and unused variable.

Fixes: de1f8ce ("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>
  • Loading branch information
rth7680 committed Jun 30, 2023
1 parent 408015a commit d39a84b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/dbus-listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ static bool d3d_texture2d_release0(ID3D11Texture2D *d3d_texture, Error **errp)
}
#endif /* WIN32 */

#if defined(CONFIG_GBM) || defined(WIN32)
static void dbus_update_gl_cb(GObject *source_object,
GAsyncResult *res,
gpointer user_data)
Expand All @@ -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);

Expand Down

0 comments on commit d39a84b

Please sign in to comment.