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
f9653494
Commit
f9653494
authored
Apr 02, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Get rid of the BaseWindowFuncTable typedef.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
64e33d11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
quartz_private.h
dlls/quartz/quartz_private.h
+5
-5
videorenderer.c
dlls/quartz/videorenderer.c
+3
-3
vmr9.c
dlls/quartz/vmr9.c
+3
-2
window.c
dlls/quartz/window.c
+2
-2
No files found.
dlls/quartz/quartz_private.h
View file @
f9653494
...
...
@@ -93,21 +93,21 @@ typedef struct tagBaseWindow
LONG
Width
;
LONG
Height
;
const
struct
BaseWindowFuncTable
*
pFuncsTable
;
const
struct
video_window_ops
*
pFuncsTable
;
}
BaseWindow
;
typedef
RECT
(
WINAPI
*
BaseWindow_GetDefaultRect
)(
BaseWindow
*
This
);
typedef
BOOL
(
WINAPI
*
BaseWindow_OnSize
)(
BaseWindow
*
This
,
LONG
Height
,
LONG
Width
);
typedef
struct
BaseWindowFuncTable
struct
video_window_ops
{
/* Required */
BaseWindow_GetDefaultRect
pfnGetDefaultRect
;
/* Optional, WinProc Related */
BaseWindow_OnSize
pfnOnSize
;
}
BaseWindowFuncTable
;
};
HRESULT
WINAPI
BaseWindow_Init
(
BaseWindow
*
pBaseWindow
,
const
BaseWindowFuncTable
*
pFuncsTable
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
BaseWindow_Init
(
BaseWindow
*
pBaseWindow
,
const
struct
video_window_ops
*
pFuncsTable
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
BaseWindow_Destroy
(
BaseWindow
*
pBaseWindow
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
BaseWindowImpl_PrepareWindow
(
BaseWindow
*
This
)
DECLSPEC_HIDDEN
;
...
...
@@ -126,7 +126,7 @@ struct video_window
};
HRESULT
video_window_init
(
struct
video_window
*
window
,
const
IVideoWindowVtbl
*
vtbl
,
struct
strmbase_filter
*
filter
,
struct
strmbase_pin
*
pin
,
const
BaseWindowFuncTable
*
func_table
)
DECLSPEC_HIDDEN
;
struct
strmbase_filter
*
filter
,
struct
strmbase_pin
*
pin
,
const
struct
video_window_ops
*
ops
)
DECLSPEC_HIDDEN
;
void
video_window_unregister_class
(
void
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
BaseControlWindow_Destroy
(
struct
video_window
*
window
)
DECLSPEC_HIDDEN
;
...
...
dlls/quartz/videorenderer.c
View file @
f9653494
...
...
@@ -344,7 +344,8 @@ static const struct strmbase_renderer_ops renderer_ops =
.
renderer_pin_query_interface
=
video_renderer_pin_query_interface
,
};
static
const
BaseWindowFuncTable
renderer_BaseWindowFuncTable
=
{
static
const
struct
video_window_ops
window_ops
=
{
VideoRenderer_GetDefaultRect
,
VideoRenderer_OnSize
};
...
...
@@ -710,8 +711,7 @@ HRESULT video_renderer_create(IUnknown *outer, IUnknown **out)
object
->
IOverlay_iface
.
lpVtbl
=
&
overlay_vtbl
;
hr
=
video_window_init
(
&
object
->
baseControlWindow
,
&
IVideoWindow_VTable
,
&
object
->
renderer
.
filter
,
&
object
->
renderer
.
sink
.
pin
,
&
renderer_BaseWindowFuncTable
);
&
object
->
renderer
.
filter
,
&
object
->
renderer
.
sink
.
pin
,
&
window_ops
);
if
(
FAILED
(
hr
))
goto
fail
;
...
...
dlls/quartz/vmr9.c
View file @
f9653494
...
...
@@ -689,7 +689,8 @@ static BOOL WINAPI VMR9_OnSize(BaseWindow *This, LONG Width, LONG Height)
return
TRUE
;
}
static
const
BaseWindowFuncTable
renderer_BaseWindowFuncTable
=
{
static
const
struct
video_window_ops
window_ops
=
{
VMR9_GetDefaultRect
,
VMR9_OnSize
,
};
...
...
@@ -2319,7 +2320,7 @@ static HRESULT vmr_create(IUnknown *outer, IUnknown **out, const CLSID *clsid)
object
->
IOverlay_iface
.
lpVtbl
=
&
overlay_vtbl
;
hr
=
video_window_init
(
&
object
->
baseControlWindow
,
&
IVideoWindow_VTable
,
&
object
->
renderer
.
filter
,
&
object
->
renderer
.
sink
.
pin
,
&
renderer_BaseWindowFuncTable
);
&
object
->
renderer
.
filter
,
&
object
->
renderer
.
sink
.
pin
,
&
window_ops
);
if
(
FAILED
(
hr
))
goto
fail
;
...
...
dlls/quartz/window.c
View file @
f9653494
...
...
@@ -84,7 +84,7 @@ static LRESULT CALLBACK WndProcW(HWND hwnd, UINT message, WPARAM wparam, LPARAM
return
DefWindowProcW
(
hwnd
,
message
,
wparam
,
lparam
);
}
HRESULT
WINAPI
BaseWindow_Init
(
BaseWindow
*
pBaseWindow
,
const
BaseWindowFuncTable
*
pFuncsTable
)
HRESULT
WINAPI
BaseWindow_Init
(
BaseWindow
*
pBaseWindow
,
const
struct
video_window_ops
*
pFuncsTable
)
{
if
(
!
pFuncsTable
)
return
E_INVALIDARG
;
...
...
@@ -153,7 +153,7 @@ HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This)
HRESULT
video_window_init
(
struct
video_window
*
pControlWindow
,
const
IVideoWindowVtbl
*
lpVtbl
,
struct
strmbase_filter
*
owner
,
struct
strmbase_pin
*
pPin
,
const
BaseWindowFuncTable
*
pFuncsTable
)
struct
strmbase_pin
*
pPin
,
const
struct
video_window_ops
*
pFuncsTable
)
{
HRESULT
hr
;
...
...
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