quartz: Always expose that non fullscreen mode is supported and active.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2024-06-10 10:28:03 +02:00 committed by Alexandre Julliard
parent faa5cade4a
commit 6fd8e30c69
2 changed files with 10 additions and 3 deletions

View file

@ -4504,6 +4504,11 @@ static HRESULT WINAPI VideoWindow_get_FullScreenMode(IVideoWindow *iface, LONG *
if (hr == S_OK)
hr = IVideoWindow_get_FullScreenMode(pVideoWindow, FullScreenMode);
if (hr == E_NOTIMPL)
{
*FullScreenMode = OAFALSE;
hr = S_OK;
}
LeaveCriticalSection(&This->cs);
@ -4524,6 +4529,8 @@ static HRESULT WINAPI VideoWindow_put_FullScreenMode(IVideoWindow *iface, LONG F
if (hr == S_OK)
hr = IVideoWindow_put_FullScreenMode(pVideoWindow, FullScreenMode);
if (hr == E_NOTIMPL && FullScreenMode == OAFALSE)
hr = S_FALSE;
LeaveCriticalSection(&This->cs);

View file

@ -2473,10 +2473,10 @@ static void test_video_window(void)
l = 0xdeadbeef;
hr = IVideoWindow_get_FullScreenMode(window, &l);
todo_wine ok(hr == S_OK, "Got hr %#lx.\n", hr);
todo_wine ok(l == OAFALSE, "Got fullscreenmode %ld.\n", l);
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(l == OAFALSE, "Got fullscreenmode %ld.\n", l);
hr = IVideoWindow_put_FullScreenMode(window, l);
todo_wine ok(hr == S_FALSE, "Got hr %#lx.\n", hr);
ok(hr == S_FALSE, "Got hr %#lx.\n", hr);
IFilterGraph2_Release(graph);
IVideoWindow_Release(window);