mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/gui: Add helper to draw sink to background
This commit is contained in:
parent
a8dd070951
commit
201c81813d
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue