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
013c024b
Commit
013c024b
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 resize callback.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
69011b37
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
28 deletions
+2
-28
quartz_private.h
dlls/quartz/quartz_private.h
+0
-4
videorenderer.c
dlls/quartz/videorenderer.c
+0
-11
vmr9.c
dlls/quartz/vmr9.c
+0
-11
window.c
dlls/quartz/window.c
+2
-2
No files found.
dlls/quartz/quartz_private.h
View file @
013c024b
...
...
@@ -106,11 +106,7 @@ struct video_window
struct
video_window_ops
{
/* Required */
RECT
(
*
get_default_rect
)(
struct
video_window
*
window
);
/* Optional, WinProc Related */
BOOL
(
*
resize
)(
struct
video_window
*
window
,
LONG
height
,
LONG
width
);
HRESULT
(
*
get_current_image
)(
struct
video_window
*
window
,
LONG
*
size
,
LONG
*
image
);
};
...
...
dlls/quartz/videorenderer.c
View file @
013c024b
...
...
@@ -245,16 +245,6 @@ static RECT video_renderer_get_default_rect(struct video_window *iface)
return
defRect
;
}
static
BOOL
video_renderer_resize
(
struct
video_window
*
iface
,
LONG
Width
,
LONG
Height
)
{
struct
video_renderer
*
filter
=
impl_from_video_window
(
iface
);
TRACE
(
"WM_SIZE %d %d
\n
"
,
Width
,
Height
);
GetClientRect
(
iface
->
hwnd
,
&
filter
->
window
.
dst
);
return
TRUE
;
}
static
const
struct
strmbase_renderer_ops
renderer_ops
=
{
.
pfnCheckMediaType
=
VideoRenderer_CheckMediaType
,
...
...
@@ -317,7 +307,6 @@ static HRESULT video_renderer_get_current_image(struct video_window *iface, LONG
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
,
};
...
...
dlls/quartz/vmr9.c
View file @
013c024b
...
...
@@ -663,16 +663,6 @@ static RECT vmr_get_default_rect(struct video_window *This)
return
defRect
;
}
static
BOOL
vmr_resize
(
struct
video_window
*
This
,
LONG
Width
,
LONG
Height
)
{
struct
quartz_vmr
*
pVMR9
=
impl_from_video_window
(
This
);
TRACE
(
"WM_SIZE %d %d
\n
"
,
Width
,
Height
);
GetClientRect
(
This
->
hwnd
,
&
pVMR9
->
window
.
dst
);
return
TRUE
;
}
static
HRESULT
vmr_get_current_image
(
struct
video_window
*
iface
,
LONG
*
size
,
LONG
*
image
)
{
struct
quartz_vmr
*
filter
=
impl_from_video_window
(
iface
);
...
...
@@ -737,7 +727,6 @@ out:
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
,
};
...
...
dlls/quartz/window.c
View file @
013c024b
...
...
@@ -68,8 +68,8 @@ static LRESULT CALLBACK WndProcW(HWND hwnd, UINT message, WPARAM wparam, LPARAM
}
break
;
case
WM_SIZE
:
if
(
window
->
ops
->
resize
)
return
window
->
ops
->
resize
(
window
,
LOWORD
(
lparam
),
HIWORD
(
lparam
))
;
GetClientRect
(
window
->
hwnd
,
&
window
->
dst
);
break
;
}
return
DefWindowProcW
(
hwnd
,
message
,
wparam
,
lparam
);
...
...
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