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
baa7dcb9
Commit
baa7dcb9
authored
Jul 26, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Simplify mciWhere.
parent
c2a0c774
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
23 deletions
+9
-23
mciqtz.c
dlls/mciqtz32/mciqtz.c
+9
-23
No files found.
dlls/mciqtz32/mciqtz.c
View file @
baa7dcb9
...
...
@@ -688,23 +688,14 @@ static DWORD MCIQTZ_mciWhere(UINT wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lp
if
(
dwFlags
&
MCI_DGV_WHERE_SOURCE
)
{
if
(
dwFlags
&
MCI_DGV_WHERE_MAX
)
FIXME
(
"MCI_DGV_WHERE_SOURCE_MAX stub %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
IBasicVideo_get_SourceLeft
(
wma
->
vidbasic
,
&
rc
.
left
);
IBasicVideo_get_SourceTop
(
wma
->
vidbasic
,
&
rc
.
top
);
IBasicVideo_get_SourceWidth
(
wma
->
vidbasic
,
&
rc
.
right
);
IBasicVideo_get_SourceHeight
(
wma
->
vidbasic
,
&
rc
.
bottom
);
/* Undo conversion done below */
rc
.
right
+=
rc
.
left
;
rc
.
bottom
+=
rc
.
top
;
IBasicVideo_GetSourcePosition
(
wma
->
vidbasic
,
&
rc
.
left
,
&
rc
.
top
,
&
rc
.
right
,
&
rc
.
bottom
);
TRACE
(
"MCI_DGV_WHERE_SOURCE %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
}
if
(
dwFlags
&
MCI_DGV_WHERE_DESTINATION
)
{
if
(
dwFlags
&
MCI_DGV_WHERE_MAX
)
{
GetClientRect
(
hWnd
,
&
rc
);
TRACE
(
"MCI_DGV_WHERE_DESTINATION_MAX %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
}
else
{
FIXME
(
"MCI_DGV_WHERE_DESTINATION not supported yet
\n
"
);
goto
out
;
}
if
(
dwFlags
&
MCI_DGV_WHERE_MAX
)
FIXME
(
"MCI_DGV_WHERE_DESTINATION_MAX stub %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
IBasicVideo_GetDestinationPosition
(
wma
->
vidbasic
,
&
rc
.
left
,
&
rc
.
top
,
&
rc
.
right
,
&
rc
.
bottom
);
TRACE
(
"MCI_DGV_WHERE_DESTINATION %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
}
if
(
dwFlags
&
MCI_DGV_WHERE_FRAME
)
{
if
(
dwFlags
&
MCI_DGV_WHERE_MAX
)
...
...
@@ -723,22 +714,17 @@ static DWORD MCIQTZ_mciWhere(UINT wDevID, DWORD dwFlags, LPMCI_DGV_RECT_PARMS lp
if
(
dwFlags
&
MCI_DGV_WHERE_WINDOW
)
{
if
(
dwFlags
&
MCI_DGV_WHERE_MAX
)
{
GetWindowRect
(
GetDesktopWindow
(),
&
rc
);
rc
.
right
-=
rc
.
left
;
rc
.
bottom
-=
rc
.
top
;
TRACE
(
"MCI_DGV_WHERE_WINDOW_MAX %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
}
else
{
GetWindowRect
(
hWnd
,
&
rc
);
IVideoWindow_GetWindowPosition
(
wma
->
vidwin
,
&
rc
.
left
,
&
rc
.
top
,
&
rc
.
right
,
&
rc
.
bottom
);
TRACE
(
"MCI_DGV_WHERE_WINDOW %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
}
}
ret
=
0
;
out:
/* In MCI, RECT structure is used differently: rc.right = width & rc.bottom = height
* So convert the normal RECT into a MCI RECT before returning */
lpParms
->
rc
.
left
=
rc
.
left
;
lpParms
->
rc
.
top
=
rc
.
top
;
lpParms
->
rc
.
right
=
rc
.
right
-
rc
.
left
;
lpParms
->
rc
.
bottom
=
rc
.
bottom
-
rc
.
top
;
lpParms
->
rc
=
rc
;
return
ret
;
}
...
...
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