dxgi: Implement dxgi_output_GetGammaControlCapabilities().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43584
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Müller 2018-11-30 14:43:03 +01:00 committed by Alexandre Julliard
parent 4dcba35b88
commit ad76b1fb36
1 changed files with 15 additions and 2 deletions

View File

@ -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,