mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 10:48:08 +02:00
vdpau: implement PresentationQueueSetBackgroundColor
This commit is contained in:
parent
e0cc970a54
commit
cd13ec253a
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue