diff options
author | Emeric Grange <[email protected]> | 2011-09-12 23:39:31 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-09-14 15:49:16 +0200 |
commit | 85534e6f48c1ad6ff8dee77e0407c6c3dedb4b84 (patch) | |
tree | 13b5e2794673e4b67177df73a3481a61a9a515cf /src/gallium/state_trackers/vdpau/presentation.c | |
parent | fa2a8316cebeb75626ffa3e38dbc1500e82054f6 (diff) |
st/vdpau: Add get_clear_color capability
Signed-off-by: Emeric Grange <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/presentation.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/presentation.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index 927350ba980..b3b543b4a80 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -139,12 +139,20 @@ VdpStatus vlVdpPresentationQueueGetBackgroundColor(VdpPresentationQueue presentation_queue, VdpColor *const background_color) { + vlVdpPresentationQueue *pq; + VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Getting background color\n"); if (!background_color) return VDP_STATUS_INVALID_POINTER; - return VDP_STATUS_NO_IMPLEMENTATION; + pq = vlGetDataHTAB(presentation_queue); + if (!pq) + return VDP_STATUS_INVALID_HANDLE; + + vl_compositor_get_clear_color(&pq->compositor, (float*)background_color); + + return VDP_STATUS_OK; } /** |