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
ab2e5c04
Commit
ab2e5c04
authored
Nov 25, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add support for fullscreen mode in video renderer.
parent
28d35596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
videorenderer.c
dlls/quartz/videorenderer.c
+21
-3
No files found.
dlls/quartz/videorenderer.c
View file @
ab2e5c04
...
...
@@ -82,6 +82,7 @@ typedef struct VideoRendererImpl
BOOL
ThreadResult
;
HWND
hWnd
;
HWND
hWndMsgDrain
;
HWND
hWndOwner
;
BOOL
AutoShow
;
RECT
SourceRect
;
RECT
DestRect
;
...
...
@@ -555,7 +556,7 @@ HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
ZeroMemory
(
&
pVideoRenderer
->
SourceRect
,
sizeof
(
RECT
));
ZeroMemory
(
&
pVideoRenderer
->
DestRect
,
sizeof
(
RECT
));
ZeroMemory
(
&
pVideoRenderer
->
WindowPos
,
sizeof
(
RECT
));
pVideoRenderer
->
hWndMsgDrain
=
NULL
;
pVideoRenderer
->
hWndMsgDrain
=
pVideoRenderer
->
hWndOwner
=
NULL
;
pVideoRenderer
->
WindowStyle
=
WS_OVERLAPPED
;
/* construct input pin */
...
...
@@ -1890,7 +1891,8 @@ static HRESULT WINAPI Videowindow_put_Owner(IVideoWindow *iface,
TRACE
(
"(%p/%p)->(%08x)
\n
"
,
This
,
iface
,
(
DWORD
)
Owner
);
SetParent
(
This
->
hWnd
,
(
HWND
)
Owner
);
This
->
hWndOwner
=
(
HWND
)
Owner
;
SetParent
(
This
->
hWnd
,
This
->
hWndOwner
);
if
(
This
->
WindowStyle
&
WS_CHILD
)
{
LONG
old
=
GetWindowLongA
(
This
->
hWnd
,
GWL_STYLE
);
...
...
@@ -1910,7 +1912,7 @@ static HRESULT WINAPI Videowindow_get_Owner(IVideoWindow *iface,
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
Owner
);
*
(
HWND
*
)
Owner
=
GetParent
(
This
->
hWnd
)
;
*
(
HWND
*
)
Owner
=
This
->
hWndOwner
;
return
S_OK
;
}
...
...
@@ -1970,6 +1972,22 @@ static HRESULT WINAPI Videowindow_put_FullScreenMode(IVideoWindow *iface,
FIXME
(
"(%p/%p)->(%d): stub !!!
\n
"
,
This
,
iface
,
FullScreenMode
);
if
(
FullScreenMode
)
{
ShowWindow
(
This
->
hWnd
,
SW_HIDE
);
SetParent
(
This
->
hWnd
,
0
);
SetWindowLongA
(
This
->
hWnd
,
GWL_STYLE
,
WS_POPUP
);
SetWindowPos
(
This
->
hWnd
,
HWND_TOP
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
),
SWP_SHOWWINDOW
);
GetWindowRect
(
This
->
hWnd
,
&
This
->
DestRect
);
This
->
WindowPos
=
This
->
DestRect
;
}
else
{
ShowWindow
(
This
->
hWnd
,
SW_HIDE
);
SetParent
(
This
->
hWnd
,
This
->
hWndOwner
);
SetWindowLongA
(
This
->
hWnd
,
GWL_STYLE
,
This
->
WindowStyle
);
GetClientRect
(
This
->
hWnd
,
&
This
->
DestRect
);
SetWindowPos
(
This
->
hWnd
,
0
,
This
->
DestRect
.
left
,
This
->
DestRect
.
top
,
This
->
DestRect
.
right
,
This
->
DestRect
.
bottom
,
SWP_NOZORDER
|
SWP_SHOWWINDOW
);
This
->
WindowPos
=
This
->
DestRect
;
}
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