1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

windows.media: Partially implement IClosedCaptionPropertiesStatics_get_RegionOpacity.

This commit is contained in:
Mohamad Al-Jaf 2022-11-24 03:58:49 -05:00 committed by Alexandre Julliard
parent 576f7e2a73
commit d673b697eb
2 changed files with 6 additions and 4 deletions

View File

@ -210,8 +210,10 @@ static HRESULT WINAPI captions_get_ComputedRegionColor( IClosedCaptionProperties
static HRESULT WINAPI captions_get_RegionOpacity( IClosedCaptionPropertiesStatics *iface, ClosedCaptionOpacity *value )
{
FIXME( "iface %p, value %p stub!\n", iface, value );
return E_NOTIMPL;
FIXME( "iface %p, value %p semi-stub.\n", iface, value );
*value = ClosedCaptionOpacity_Default;
return S_OK;
}
static const struct IClosedCaptionPropertiesStaticsVtbl captions_statics_vtbl =

View File

@ -142,8 +142,8 @@ static void test_CaptionStatics(void)
opacity = 0xdeadbeef;
hr = IClosedCaptionPropertiesStatics_get_RegionOpacity( caption_statics, &opacity );
todo_wine 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( hr == S_OK, "get_RegionOpacity returned %#lx\n", hr );
ok( opacity == ClosedCaptionOpacity_Default, "expected default region opacity, got %d\n", opacity );
ref = IClosedCaptionPropertiesStatics_Release( caption_statics );
ok( ref == 2, "got ref %ld.\n", ref );