Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a3d3b399
Commit
a3d3b399
authored
Oct 08, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Properly implement IVideoWindow::get_WindowState().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ab98626a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
videorenderer.c
dlls/quartz/tests/videorenderer.c
+7
-7
window.c
dlls/strmbase/window.c
+14
-7
No files found.
dlls/quartz/tests/videorenderer.c
View file @
a3d3b399
...
...
@@ -1487,7 +1487,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_HIDE
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_HIDE
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OAFALSE
,
"Got state %d.
\n
"
,
state
);
...
...
@@ -1501,7 +1501,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_SHOW
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_SHOW
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OATRUE
,
"Got state %d.
\n
"
,
state
);
...
...
@@ -1518,7 +1518,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_MINIMIZE
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_MINIMIZE
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OATRUE
,
"Got state %d.
\n
"
,
state
);
...
...
@@ -1533,7 +1533,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_SHOW
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_SHOW
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OATRUE
,
"Got state %d.
\n
"
,
state
);
...
...
@@ -1566,7 +1566,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_HIDE
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_HIDE
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OAFALSE
,
"Got state %d.
\n
"
,
state
);
...
...
@@ -1581,7 +1581,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_SHOW
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_SHOW
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OATRUE
,
"Got state %d.
\n
"
,
state
);
...
...
@@ -1596,7 +1596,7 @@ static void test_video_window_state(IVideoWindow *window, HWND hwnd, HWND our_hw
hr
=
IVideoWindow_get_WindowState
(
window
,
&
state
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
state
==
SW_HIDE
,
"Got state %d.
\n
"
,
state
);
ok
(
state
==
SW_HIDE
,
"Got state %d.
\n
"
,
state
);
hr
=
IVideoWindow_get_Visible
(
window
,
&
state
);
ok
(
state
==
OAFALSE
,
"Got state %d.
\n
"
,
state
);
...
...
dlls/strmbase/window.c
View file @
a3d3b399
...
...
@@ -402,15 +402,22 @@ HRESULT WINAPI BaseControlWindowImpl_put_WindowState(IVideoWindow *iface, LONG W
return
S_OK
;
}
HRESULT
WINAPI
BaseControlWindowImpl_get_WindowState
(
IVideoWindow
*
iface
,
LONG
*
WindowS
tate
)
HRESULT
WINAPI
BaseControlWindowImpl_get_WindowState
(
IVideoWindow
*
iface
,
LONG
*
s
tate
)
{
WINDOWPLACEMENT
place
;
BaseControlWindow
*
This
=
impl_from_IVideoWindow
(
iface
)
;
BaseControlWindow
*
window
=
impl_from_IVideoWindow
(
iface
)
;
DWORD
style
;
place
.
length
=
sizeof
(
place
);
GetWindowPlacement
(
This
->
baseWindow
.
hWnd
,
&
place
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
WindowState
);
*
WindowState
=
place
.
showCmd
;
TRACE
(
"window %p, state %p.
\n
"
,
window
,
state
);
style
=
GetWindowLongPtrW
(
window
->
baseWindow
.
hWnd
,
GWL_STYLE
);
if
(
!
(
style
&
WS_VISIBLE
))
*
state
=
SW_HIDE
;
else
if
(
style
&
WS_MINIMIZE
)
*
state
=
SW_MINIMIZE
;
else
if
(
style
&
WS_MAXIMIZE
)
*
state
=
SW_MAXIMIZE
;
else
*
state
=
SW_SHOW
;
return
S_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment