Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f3831870
Commit
f3831870
authored
Apr 26, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Track internal window styles in baseWindow.WindowStyles.
parent
3bc1bdae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
videorenderer.c
dlls/quartz/videorenderer.c
+2
-3
window.c
dlls/strmbase/window.c
+11
-1
No files found.
dlls/quartz/videorenderer.c
View file @
f3831870
...
...
@@ -72,7 +72,6 @@ typedef struct VideoRendererImpl
IUnknown
*
pUnkOuter
;
BOOL
bUnkOuterValid
;
BOOL
bAggregatable
;
LONG
WindowStyle
;
}
VideoRendererImpl
;
static
inline
VideoRendererImpl
*
impl_from_BaseWindow
(
BaseWindow
*
iface
)
...
...
@@ -982,7 +981,7 @@ static HRESULT WINAPI Videowindow_put_FullScreenMode(IVideoWindow *iface,
FIXME
(
"(%p/%p)->(%d): stub !!!
\n
"
,
This
,
iface
,
FullScreenMode
);
if
(
FullScreenMode
)
{
This
->
WindowStyle
=
GetWindowLongW
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
GWL_STYLE
);
This
->
baseControlWindow
.
baseWindow
.
WindowStyles
=
GetWindowLongW
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
GWL_STYLE
);
ShowWindow
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
SW_HIDE
);
SetParent
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
0
);
SetWindowLongW
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
GWL_STYLE
,
WS_POPUP
);
...
...
@@ -992,7 +991,7 @@ static HRESULT WINAPI Videowindow_put_FullScreenMode(IVideoWindow *iface,
}
else
{
ShowWindow
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
SW_HIDE
);
SetParent
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
This
->
baseControlWindow
.
hwndOwner
);
SetWindowLongW
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
GWL_STYLE
,
This
->
WindowStyle
);
SetWindowLongW
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
GWL_STYLE
,
This
->
baseControlWindow
.
baseWindow
.
WindowStyles
);
GetClientRect
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
&
This
->
DestRect
);
SetWindowPos
(
This
->
baseControlWindow
.
baseWindow
.
hWnd
,
0
,
This
->
DestRect
.
left
,
This
->
DestRect
.
top
,
This
->
DestRect
.
right
,
This
->
DestRect
.
bottom
,
SWP_NOZORDER
|
SWP_SHOWWINDOW
);
This
->
WindowPos
=
This
->
DestRect
;
...
...
dlls/strmbase/window.c
View file @
f3831870
...
...
@@ -300,6 +300,7 @@ HRESULT WINAPI BaseControlWindowImpl_put_WindowStyle(IVideoWindow *iface, LONG W
SetWindowLongW
(
This
->
baseWindow
.
hWnd
,
GWL_STYLE
,
WindowStyle
);
SetWindowPos
(
This
->
baseWindow
.
hWnd
,
0
,
0
,
0
,
0
,
0
,
SWP_FRAMECHANGED
|
SWP_NOSIZE
|
SWP_NOZORDER
);
This
->
baseWindow
.
WindowStyles
=
WindowStyle
;
return
S_OK
;
}
...
...
@@ -310,7 +311,7 @@ HRESULT WINAPI BaseControlWindowImpl_get_WindowStyle(IVideoWindow *iface, LONG *
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
WindowStyle
);
*
WindowStyle
=
GetWindowLongW
(
This
->
baseWindow
.
hWnd
,
GWL_STYLE
)
;
*
WindowStyle
=
This
->
baseWindow
.
WindowStyles
;
return
S_OK
;
}
...
...
@@ -534,6 +535,15 @@ HRESULT WINAPI BaseControlWindowImpl_put_Owner(IVideoWindow *iface, OAHWND Owner
This
->
hwndOwner
=
(
HWND
)
Owner
;
SetParent
(
This
->
baseWindow
.
hWnd
,
This
->
hwndOwner
);
if
(
This
->
baseWindow
.
WindowStyles
&
WS_CHILD
)
{
LONG
old
=
GetWindowLongW
(
This
->
baseWindow
.
hWnd
,
GWL_STYLE
);
if
(
old
!=
This
->
baseWindow
.
WindowStyles
)
{
SetWindowLongW
(
This
->
baseWindow
.
hWnd
,
GWL_STYLE
,
This
->
baseWindow
.
WindowStyles
);
SetWindowPos
(
This
->
baseWindow
.
hWnd
,
0
,
0
,
0
,
0
,
0
,
SWP_FRAMECHANGED
|
SWP_NOSIZE
|
SWP_NOZORDER
);
}
}
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