From 201c81813dcf5b2e1a98b958d6d6116b83805840 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 13 Jul 2023 23:35:45 +0100 Subject: [PATCH] st/gui: Add helper to draw sink to background --- src/xrt/state_trackers/gui/gui_scene_debug.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/xrt/state_trackers/gui/gui_scene_debug.c b/src/xrt/state_trackers/gui/gui_scene_debug.c index d2c25b75d..071e03384 100644 --- a/src/xrt/state_trackers/gui/gui_scene_debug.c +++ b/src/xrt/state_trackers/gui/gui_scene_debug.c @@ -195,6 +195,18 @@ ensure_debug_record_created(void *ptr, struct draw_state *state) return NULL; } +// Currently unused. +XRT_MAYBE_UNUSED static void +draw_sink_to_background(struct u_var_info *var, struct draw_state *state) +{ + struct debug_record *dr = ensure_debug_record_created(var->ptr, state); + if (dr == NULL) { + return; + } + + gui_window_record_to_background(&dr->rw, state->p); +} + /* *