mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
quartz: Always expose that non fullscreen mode is supported and active.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
faa5cade4a
commit
6fd8e30c69
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue