Commit 576f7e2a authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

windows.media: Partially implement IClosedCaptionPropertiesStatics_get_RegionColor.

parent 216df6b9
...@@ -196,8 +196,10 @@ static HRESULT WINAPI captions_get_BackgroundOpacity( IClosedCaptionPropertiesSt ...@@ -196,8 +196,10 @@ static HRESULT WINAPI captions_get_BackgroundOpacity( IClosedCaptionPropertiesSt
static HRESULT WINAPI captions_get_RegionColor( IClosedCaptionPropertiesStatics *iface, ClosedCaptionColor *value ) static HRESULT WINAPI captions_get_RegionColor( IClosedCaptionPropertiesStatics *iface, ClosedCaptionColor *value )
{ {
FIXME( "iface %p, value %p stub!\n", iface, value ); FIXME( "iface %p, value %p semi-stub.\n", iface, value );
return E_NOTIMPL;
*value = ClosedCaptionColor_Default;
return S_OK;
} }
static HRESULT WINAPI captions_get_ComputedRegionColor( IClosedCaptionPropertiesStatics *iface, Color *value ) static HRESULT WINAPI captions_get_ComputedRegionColor( IClosedCaptionPropertiesStatics *iface, Color *value )
......
...@@ -132,8 +132,8 @@ static void test_CaptionStatics(void) ...@@ -132,8 +132,8 @@ static void test_CaptionStatics(void)
color = 0xdeadbeef; color = 0xdeadbeef;
hr = IClosedCaptionPropertiesStatics_get_RegionColor( caption_statics, &color ); hr = IClosedCaptionPropertiesStatics_get_RegionColor( caption_statics, &color );
todo_wine ok( hr == S_OK, "get_RegionColor returned %#lx\n", hr ); ok( hr == S_OK, "get_RegionColor returned %#lx\n", hr );
todo_wine ok( color == ClosedCaptionColor_Default, "expected default region color, got %d\n", color ); ok( color == ClosedCaptionColor_Default, "expected default region color, got %d\n", color );
hr = IClosedCaptionPropertiesStatics_get_ComputedRegionColor( caption_statics, &computed_color ); hr = IClosedCaptionPropertiesStatics_get_ComputedRegionColor( caption_statics, &computed_color );
todo_wine ok( hr == E_INVALIDARG, "get_ComputedRegionColor returned %#lx\n", hr ); todo_wine ok( hr == E_INVALIDARG, "get_ComputedRegionColor returned %#lx\n", hr );
......
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