aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-05-07 15:00:52 +0200
committerChristian König <[email protected]>2011-05-07 15:00:52 +0200
commitcd13ec253ab8befed6ee9ece20ceebed9f73050f (patch)
tree46be4617c99421478b3818afc965898d85ccc971 /src
parente0cc970a54660035942ef8f8db122835e1407676 (diff)
vdpau: implement PresentationQueueSetBackgroundColor
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/vdpau/presentation.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 2f029f07fb1..02fcfbd0746 100644
--- a/src/gallium/state_trackers/vdpau/presentation.c
+++ b/src/gallium/state_trackers/vdpau/presentation.c
@@ -109,10 +109,20 @@ VdpStatus
vlVdpPresentationQueueSetBackgroundColor(VdpPresentationQueue presentation_queue,
VdpColor *const background_color)
{
+ vlVdpPresentationQueue *pq;
+
+ VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Setting 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;
+
+ pq->compositor->set_clear_color(pq->compositor, (float*)background_color);
+
+ return VDP_STATUS_OK;
}
VdpStatus