Commit ad76b1fb authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

dxgi: Implement dxgi_output_GetGammaControlCapabilities().

parent 4dcba35b
......@@ -297,9 +297,22 @@ static void STDMETHODCALLTYPE dxgi_output_ReleaseOwnership(IDXGIOutput4 *iface)
static HRESULT STDMETHODCALLTYPE dxgi_output_GetGammaControlCapabilities(IDXGIOutput4 *iface,
DXGI_GAMMA_CONTROL_CAPABILITIES *gamma_caps)
{
FIXME("iface %p, gamma_caps %p stub!\n", iface, gamma_caps);
unsigned int i;
return E_NOTIMPL;
TRACE("iface %p, gamma_caps %p.\n", iface, gamma_caps);
if (!gamma_caps)
return E_INVALIDARG;
gamma_caps->ScaleAndOffsetSupported = FALSE;
gamma_caps->MaxConvertedValue = 1.0f;
gamma_caps->MinConvertedValue = 0.0f;
gamma_caps->NumGammaControlPoints = 256;
for (i = 0; i < gamma_caps->NumGammaControlPoints; ++i)
gamma_caps->ControlPointPositions[i] = i / 255.0f;
return S_OK;
}
static HRESULT STDMETHODCALLTYPE dxgi_output_SetGammaControl(IDXGIOutput4 *iface,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment