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
55b2251f
Commit
55b2251f
authored
Oct 15, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of the "pfnPossiblyEatMessage" callback.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0854f67d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
54 deletions
+38
-54
videorenderer.c
dlls/quartz/videorenderer.c
+0
-1
vmr9.c
dlls/quartz/vmr9.c
+0
-1
window.c
dlls/strmbase/window.c
+38
-50
strmbase.h
include/wine/strmbase.h
+0
-2
No files found.
dlls/quartz/videorenderer.c
View file @
55b2251f
...
...
@@ -444,7 +444,6 @@ static const BaseWindowFuncTable renderer_BaseWindowFuncTable = {
VideoRenderer_GetClassWindowStyles
,
VideoRenderer_GetDefaultRect
,
NULL
,
BaseControlWindowImpl_PossiblyEatMessage
,
VideoRenderer_OnSize
};
...
...
dlls/quartz/vmr9.c
View file @
55b2251f
...
...
@@ -607,7 +607,6 @@ static const BaseWindowFuncTable renderer_BaseWindowFuncTable = {
VMR9_GetClassWindowStyles
,
VMR9_GetDefaultRect
,
NULL
,
BaseControlWindowImpl_PossiblyEatMessage
,
VMR9_OnSize
,
};
...
...
dlls/strmbase/window.c
View file @
55b2251f
...
...
@@ -45,21 +45,49 @@ static LRESULT CALLBACK WndProcW(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
return
BaseWindowImpl_OnReceiveMessage
(
This
,
hwnd
,
uMsg
,
wParam
,
lParam
);
}
LRESULT
WINAPI
BaseWindowImpl_OnReceiveMessage
(
BaseWindow
*
This
,
HWND
hwnd
,
INT
uMsg
,
WPARAM
wParam
,
LPARAM
lP
aram
)
LRESULT
WINAPI
BaseWindowImpl_OnReceiveMessage
(
BaseWindow
*
This
,
HWND
hwnd
,
INT
message
,
WPARAM
wparam
,
LPARAM
lp
aram
)
{
if
(
This
->
pFuncsTable
->
pfnPossiblyEatMessage
&&
This
->
pFuncsTable
->
pfnPossiblyEatMessage
(
This
,
uMsg
,
wParam
,
lParam
))
return
0
;
BaseControlWindow
*
window
=
impl_from_BaseWindow
(
This
);
switch
(
uMsg
)
switch
(
message
)
{
case
WM_SIZE
:
if
(
This
->
pFuncsTable
->
pfnOnSize
)
return
This
->
pFuncsTable
->
pfnOnSize
(
This
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
else
return
BaseWindowImpl_OnSize
(
This
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
case
WM_KEYDOWN
:
case
WM_KEYUP
:
case
WM_LBUTTONDBLCLK
:
case
WM_LBUTTONDOWN
:
case
WM_LBUTTONUP
:
case
WM_MBUTTONDBLCLK
:
case
WM_MBUTTONDOWN
:
case
WM_MBUTTONUP
:
case
WM_MOUSEACTIVATE
:
case
WM_MOUSEMOVE
:
case
WM_NCLBUTTONDBLCLK
:
case
WM_NCLBUTTONDOWN
:
case
WM_NCLBUTTONUP
:
case
WM_NCMBUTTONDBLCLK
:
case
WM_NCMBUTTONDOWN
:
case
WM_NCMBUTTONUP
:
case
WM_NCMOUSEMOVE
:
case
WM_NCRBUTTONDBLCLK
:
case
WM_NCRBUTTONDOWN
:
case
WM_NCRBUTTONUP
:
case
WM_RBUTTONDBLCLK
:
case
WM_RBUTTONDOWN
:
case
WM_RBUTTONUP
:
if
(
window
->
hwndDrain
)
{
PostMessageW
(
window
->
hwndDrain
,
message
,
wparam
,
lparam
);
return
0
;
}
break
;
case
WM_SIZE
:
if
(
This
->
pFuncsTable
->
pfnOnSize
)
return
This
->
pFuncsTable
->
pfnOnSize
(
This
,
LOWORD
(
lparam
),
HIWORD
(
lparam
));
else
return
BaseWindowImpl_OnSize
(
This
,
LOWORD
(
lparam
),
HIWORD
(
lparam
));
}
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lP
aram
);
return
DefWindowProcW
(
hwnd
,
message
,
wparam
,
lp
aram
);
}
BOOL
WINAPI
BaseWindowImpl_OnSize
(
BaseWindow
*
This
,
LONG
Width
,
LONG
Height
)
...
...
@@ -147,46 +175,6 @@ HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This)
return
S_OK
;
}
BOOL
WINAPI
BaseControlWindowImpl_PossiblyEatMessage
(
BaseWindow
*
This
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
BaseControlWindow
*
pControlWindow
=
impl_from_BaseWindow
(
This
);
if
(
pControlWindow
->
hwndDrain
)
{
switch
(
uMsg
)
{
case
WM_KEYDOWN
:
case
WM_KEYUP
:
case
WM_LBUTTONDBLCLK
:
case
WM_LBUTTONDOWN
:
case
WM_LBUTTONUP
:
case
WM_MBUTTONDBLCLK
:
case
WM_MBUTTONDOWN
:
case
WM_MBUTTONUP
:
case
WM_MOUSEACTIVATE
:
case
WM_MOUSEMOVE
:
case
WM_NCLBUTTONDBLCLK
:
case
WM_NCLBUTTONDOWN
:
case
WM_NCLBUTTONUP
:
case
WM_NCMBUTTONDBLCLK
:
case
WM_NCMBUTTONDOWN
:
case
WM_NCMBUTTONUP
:
case
WM_NCMOUSEMOVE
:
case
WM_NCRBUTTONDBLCLK
:
case
WM_NCRBUTTONDOWN
:
case
WM_NCRBUTTONUP
:
case
WM_RBUTTONDBLCLK
:
case
WM_RBUTTONDOWN
:
case
WM_RBUTTONUP
:
PostMessageW
(
pControlWindow
->
hwndDrain
,
uMsg
,
wParam
,
lParam
);
return
TRUE
;
default:
break
;
}
}
return
FALSE
;
}
HRESULT
WINAPI
BaseControlWindow_Init
(
BaseControlWindow
*
pControlWindow
,
const
IVideoWindowVtbl
*
lpVtbl
,
struct
strmbase_filter
*
owner
,
CRITICAL_SECTION
*
lock
,
struct
strmbase_pin
*
pPin
,
const
BaseWindowFuncTable
*
pFuncsTable
)
...
...
include/wine/strmbase.h
View file @
55b2251f
...
...
@@ -371,7 +371,6 @@ typedef struct tagBaseWindow
typedef
LPWSTR
(
WINAPI
*
BaseWindow_GetClassWindowStyles
)(
BaseWindow
*
This
,
DWORD
*
pClassStyles
,
DWORD
*
pWindowStyles
,
DWORD
*
pWindowStylesEx
);
typedef
RECT
(
WINAPI
*
BaseWindow_GetDefaultRect
)(
BaseWindow
*
This
);
typedef
BOOL
(
WINAPI
*
BaseWindow_PossiblyEatMessage
)(
BaseWindow
*
This
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
typedef
LRESULT
(
WINAPI
*
BaseWindow_OnReceiveMessage
)(
BaseWindow
*
This
,
HWND
hwnd
,
INT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
typedef
BOOL
(
WINAPI
*
BaseWindow_OnSize
)(
BaseWindow
*
This
,
LONG
Height
,
LONG
Width
);
...
...
@@ -382,7 +381,6 @@ typedef struct BaseWindowFuncTable
BaseWindow_GetDefaultRect
pfnGetDefaultRect
;
/* Optional, WinProc Related */
BaseWindow_OnReceiveMessage
pfnOnReceiveMessage
;
BaseWindow_PossiblyEatMessage
pfnPossiblyEatMessage
;
BaseWindow_OnSize
pfnOnSize
;
}
BaseWindowFuncTable
;
...
...
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