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
69011b37
Commit
69011b37
authored
May 07, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Get rid of the SetDefault*Rect callbacks.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cab14ee0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
52 deletions
+5
-52
quartz_private.h
dlls/quartz/quartz_private.h
+0
-2
videorenderer.c
dlls/quartz/videorenderer.c
+0
-24
vmr9.c
dlls/quartz/vmr9.c
+0
-24
window.c
dlls/quartz/window.c
+5
-2
No files found.
dlls/quartz/quartz_private.h
View file @
69011b37
...
...
@@ -112,8 +112,6 @@ struct video_window_ops
BOOL
(
*
resize
)(
struct
video_window
*
window
,
LONG
height
,
LONG
width
);
HRESULT
(
*
get_current_image
)(
struct
video_window
*
window
,
LONG
*
size
,
LONG
*
image
);
HRESULT
(
WINAPI
*
pfnSetDefaultSourceRect
)(
struct
video_window
*
window
);
HRESULT
(
WINAPI
*
pfnSetDefaultTargetRect
)(
struct
video_window
*
window
);
};
void
video_window_cleanup
(
struct
video_window
*
window
)
DECLSPEC_HIDDEN
;
...
...
dlls/quartz/videorenderer.c
View file @
69011b37
...
...
@@ -314,35 +314,11 @@ static HRESULT video_renderer_get_current_image(struct video_window *iface, LONG
return
S_OK
;
}
static
HRESULT
WINAPI
VideoRenderer_SetDefaultSourceRect
(
struct
video_window
*
iface
)
{
struct
video_renderer
*
This
=
impl_from_video_window
(
iface
);
SetRect
(
&
This
->
window
.
src
,
0
,
0
,
This
->
VideoWidth
,
This
->
VideoHeight
);
return
S_OK
;
}
static
HRESULT
WINAPI
VideoRenderer_SetDefaultTargetRect
(
struct
video_window
*
iface
)
{
struct
video_renderer
*
This
=
impl_from_video_window
(
iface
);
RECT
rect
;
if
(
!
GetClientRect
(
This
->
window
.
hwnd
,
&
rect
))
return
E_FAIL
;
SetRect
(
&
This
->
window
.
dst
,
0
,
0
,
rect
.
right
,
rect
.
bottom
);
return
S_OK
;
}
static
const
struct
video_window_ops
window_ops
=
{
.
get_default_rect
=
video_renderer_get_default_rect
,
.
resize
=
video_renderer_resize
,
.
get_current_image
=
video_renderer_get_current_image
,
.
pfnSetDefaultSourceRect
=
VideoRenderer_SetDefaultSourceRect
,
.
pfnSetDefaultTargetRect
=
VideoRenderer_SetDefaultTargetRect
,
};
static
HRESULT
WINAPI
VideoWindow_get_FullScreenMode
(
IVideoWindow
*
iface
,
...
...
dlls/quartz/vmr9.c
View file @
69011b37
...
...
@@ -734,35 +734,11 @@ out:
return
hr
;
}
static
HRESULT
WINAPI
VMR9_SetDefaultSourceRect
(
struct
video_window
*
iface
)
{
struct
quartz_vmr
*
filter
=
impl_from_video_window
(
iface
);
SetRect
(
&
filter
->
window
.
src
,
0
,
0
,
filter
->
VideoWidth
,
filter
->
VideoHeight
);
return
S_OK
;
}
static
HRESULT
WINAPI
VMR9_SetDefaultTargetRect
(
struct
video_window
*
iface
)
{
RECT
rect
;
struct
quartz_vmr
*
filter
=
impl_from_video_window
(
iface
);
if
(
!
GetClientRect
(
filter
->
window
.
hwnd
,
&
rect
))
return
E_FAIL
;
SetRect
(
&
filter
->
window
.
dst
,
0
,
0
,
rect
.
right
,
rect
.
bottom
);
return
S_OK
;
}
static
const
struct
video_window_ops
window_ops
=
{
.
get_default_rect
=
vmr_get_default_rect
,
.
resize
=
vmr_resize
,
.
get_current_image
=
vmr_get_current_image
,
.
pfnSetDefaultSourceRect
=
VMR9_SetDefaultSourceRect
,
.
pfnSetDefaultTargetRect
=
VMR9_SetDefaultTargetRect
,
};
static
const
IVideoWindowVtbl
IVideoWindow_VTable
=
...
...
dlls/quartz/window.c
View file @
69011b37
...
...
@@ -1055,10 +1055,12 @@ static HRESULT WINAPI basic_video_GetSourcePosition(IBasicVideo *iface,
static
HRESULT
WINAPI
basic_video_SetDefaultSourcePosition
(
IBasicVideo
*
iface
)
{
struct
video_window
*
window
=
impl_from_IBasicVideo
(
iface
);
const
BITMAPINFOHEADER
*
bitmap_header
=
get_bitmap_header
(
window
);
TRACE
(
"window %p.
\n
"
,
window
);
return
window
->
ops
->
pfnSetDefaultSourceRect
(
window
);
SetRect
(
&
window
->
src
,
0
,
0
,
bitmap_header
->
biWidth
,
bitmap_header
->
biHeight
);
return
S_OK
;
}
static
HRESULT
WINAPI
basic_video_SetDestinationPosition
(
IBasicVideo
*
iface
,
...
...
@@ -1098,7 +1100,8 @@ static HRESULT WINAPI basic_video_SetDefaultDestinationPosition(IBasicVideo *ifa
TRACE
(
"window %p.
\n
"
,
window
);
return
window
->
ops
->
pfnSetDefaultTargetRect
(
window
);
GetClientRect
(
window
->
hwnd
,
&
window
->
dst
);
return
S_OK
;
}
static
HRESULT
WINAPI
basic_video_GetVideoSize
(
IBasicVideo
*
iface
,
LONG
*
width
,
LONG
*
height
)
...
...
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