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
708a6b06
Commit
708a6b06
authored
Jan 15, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Jan 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Support MCI_DGV_PUT_DESTINATION.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7cad73c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
1 deletion
+51
-1
mciqtz.c
dlls/mciqtz32/mciqtz.c
+51
-1
No files found.
dlls/mciqtz32/mciqtz.c
View file @
708a6b06
...
...
@@ -936,6 +936,53 @@ static DWORD MCIQTZ_mciWindow(UINT wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMS
return
0
;
}
/***************************************************************************
* MCIQTZ_mciPut [internal]
*/
static
DWORD
MCIQTZ_mciPut
(
UINT
wDevID
,
DWORD
dwFlags
,
MCI_GENERIC_PARMS
*
lpParms
)
{
WINE_MCIQTZ
*
wma
=
MCIQTZ_mciGetOpenDev
(
wDevID
);
MCI_DGV_RECT_PARMS
*
rectparms
;
HRESULT
hr
;
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
if
(
!
wma
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
!
(
dwFlags
&
MCI_DGV_RECT
))
{
FIXME
(
"No support for non-RECT MCI_PUT
\n
"
);
return
1
;
}
if
(
dwFlags
&
MCI_TEST
)
return
0
;
dwFlags
&=
~
MCI_DGV_RECT
;
rectparms
=
(
MCI_DGV_RECT_PARMS
*
)
lpParms
;
if
(
dwFlags
&
MCI_DGV_PUT_DESTINATION
)
{
hr
=
IVideoWindow_SetWindowPosition
(
wma
->
vidwin
,
rectparms
->
rc
.
left
,
rectparms
->
rc
.
top
,
rectparms
->
rc
.
right
-
rectparms
->
rc
.
left
,
rectparms
->
rc
.
bottom
-
rectparms
->
rc
.
top
);
if
(
FAILED
(
hr
))
WARN
(
"IVideoWindow_SetWindowPosition failed: 0x%x
\n
"
,
hr
);
dwFlags
&=
~
MCI_DGV_PUT_DESTINATION
;
}
if
(
dwFlags
&
MCI_NOTIFY
)
{
MCIQTZ_mciNotify
(
lpParms
->
dwCallback
,
wma
,
MCI_NOTIFY_SUCCESSFUL
);
dwFlags
&=
~
MCI_NOTIFY
;
}
if
(
dwFlags
)
FIXME
(
"No support for some flags: 0x%x
\n
"
,
dwFlags
);
return
0
;
}
/******************************************************************************
* MCIAVI_mciUpdate [internal]
*/
...
...
@@ -1099,6 +1146,9 @@ static DWORD CALLBACK MCIQTZ_taskThread(LPVOID arg)
case
MCI_WINDOW
:
task
->
res
=
MCIQTZ_mciWindow
(
task
->
devid
,
task
->
flags
,
(
LPMCI_DGV_WINDOW_PARMSW
)
task
->
parms
);
break
;
case
MCI_PUT
:
task
->
res
=
MCIQTZ_mciPut
(
task
->
devid
,
task
->
flags
,
(
MCI_GENERIC_PARMS
*
)
task
->
parms
);
break
;
case
MCI_CLOSE
:
/* Special internal message */
SetEvent
(
task
->
done
);
...
...
@@ -1163,9 +1213,9 @@ LRESULT CALLBACK MCIQTZ_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
case
MCI_SETAUDIO
:
case
MCI_UPDATE
:
case
MCI_WINDOW
:
case
MCI_PUT
:
if
(
!
dwParam2
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
return
MCIQTZ_relayTaskMessage
(
dwDevID
,
wMsg
,
dwParam1
,
dwParam2
);
case
MCI_PUT
:
case
MCI_RECORD
:
case
MCI_RESUME
:
case
MCI_INFO
:
...
...
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