mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:17:14 +00:00
windows.media: Partially implement IClosedCaptionPropertiesStatics_get_RegionOpacity.
This commit is contained in:
parent
576f7e2a73
commit
d673b697eb
|
@ -210,8 +210,10 @@ static HRESULT WINAPI captions_get_ComputedRegionColor( IClosedCaptionProperties
|
||||||
|
|
||||||
static HRESULT WINAPI captions_get_RegionOpacity( IClosedCaptionPropertiesStatics *iface, ClosedCaptionOpacity *value )
|
static HRESULT WINAPI captions_get_RegionOpacity( IClosedCaptionPropertiesStatics *iface, ClosedCaptionOpacity *value )
|
||||||
{
|
{
|
||||||
FIXME( "iface %p, value %p stub!\n", iface, value );
|
FIXME( "iface %p, value %p semi-stub.\n", iface, value );
|
||||||
return E_NOTIMPL;
|
|
||||||
|
*value = ClosedCaptionOpacity_Default;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct IClosedCaptionPropertiesStaticsVtbl captions_statics_vtbl =
|
static const struct IClosedCaptionPropertiesStaticsVtbl captions_statics_vtbl =
|
||||||
|
|
|
@ -142,8 +142,8 @@ static void test_CaptionStatics(void)
|
||||||
|
|
||||||
opacity = 0xdeadbeef;
|
opacity = 0xdeadbeef;
|
||||||
hr = IClosedCaptionPropertiesStatics_get_RegionOpacity( caption_statics, &opacity );
|
hr = IClosedCaptionPropertiesStatics_get_RegionOpacity( caption_statics, &opacity );
|
||||||
todo_wine ok( hr == S_OK, "get_RegionOpacity returned %#lx\n", hr );
|
ok( hr == S_OK, "get_RegionOpacity returned %#lx\n", hr );
|
||||||
todo_wine ok( opacity == ClosedCaptionOpacity_Default, "expected default region opacity, got %d\n", opacity );
|
ok( opacity == ClosedCaptionOpacity_Default, "expected default region opacity, got %d\n", opacity );
|
||||||
|
|
||||||
ref = IClosedCaptionPropertiesStatics_Release( caption_statics );
|
ref = IClosedCaptionPropertiesStatics_Release( caption_statics );
|
||||||
ok( ref == 2, "got ref %ld.\n", ref );
|
ok( ref == 2, "got ref %ld.\n", ref );
|
||||||
|
|
Loading…
Reference in a new issue