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
275eb8ab
Commit
275eb8ab
authored
Jun 29, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Use SetRect() instead of open coding it.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9fd4429d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
video.c
dlls/strmbase/video.c
+3
-8
No files found.
dlls/strmbase/video.c
View file @
275eb8ab
...
...
@@ -368,10 +368,8 @@ HRESULT WINAPI BaseControlVideoImpl_SetSourcePosition(IBasicVideo *iface, LONG L
BaseControlVideo
*
This
=
impl_from_IBasicVideo
(
iface
);
TRACE
(
"(%p/%p)->(%d, %d, %d, %d)
\n
"
,
This
,
iface
,
Left
,
Top
,
Width
,
Height
);
SourceRect
.
left
=
Left
;
SourceRect
.
top
=
Top
;
SourceRect
.
right
=
Left
+
Width
;
SourceRect
.
bottom
=
Top
+
Height
;
SetRect
(
&
SourceRect
,
Left
,
Top
,
Left
+
Width
,
Top
+
Height
);
This
->
pFuncsTable
->
pfnSetSourceRect
(
This
,
&
SourceRect
);
return
S_OK
;
...
...
@@ -408,10 +406,7 @@ HRESULT WINAPI BaseControlVideoImpl_SetDestinationPosition(IBasicVideo *iface, L
TRACE
(
"(%p/%p)->(%d, %d, %d, %d)
\n
"
,
This
,
iface
,
Left
,
Top
,
Width
,
Height
);
DestRect
.
left
=
Left
;
DestRect
.
top
=
Top
;
DestRect
.
right
=
Left
+
Width
;
DestRect
.
bottom
=
Top
+
Height
;
SetRect
(
&
DestRect
,
Left
,
Top
,
Left
+
Width
,
Top
+
Height
);
This
->
pFuncsTable
->
pfnSetTargetRect
(
This
,
&
DestRect
);
return
S_OK
;
...
...
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