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
a1c057c9
Commit
a1c057c9
authored
Oct 26, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/presenter: Remove scaling by zoom rectangle.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c2297eb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
presenter.c
dlls/evr/presenter.c
+1
-16
No files found.
dlls/evr/presenter.c
View file @
a1c057c9
...
...
@@ -460,21 +460,6 @@ static HRESULT video_presenter_get_sample_surface(IMFSample *sample, IDirect3DSu
return
hr
;
}
static
void
scale_rect
(
RECT
*
rect
,
unsigned
int
width
,
unsigned
int
height
,
const
MFVideoNormalizedRect
*
scale
)
{
if
(
rect
->
left
==
0
.
0
f
&&
rect
->
top
==
0
.
0
f
&&
rect
->
right
==
1
.
0
f
&&
rect
->
bottom
==
1
.
0
f
)
{
SetRect
(
rect
,
0
,
0
,
width
,
height
);
}
else
{
rect
->
left
=
width
*
scale
->
left
;
rect
->
right
=
width
*
scale
->
right
;
rect
->
top
=
height
*
scale
->
top
;
rect
->
bottom
=
height
*
scale
->
bottom
;
}
}
static
void
video_presenter_sample_present
(
struct
video_presenter
*
presenter
,
IMFSample
*
sample
)
{
IDirect3DSurface9
*
surface
,
*
backbuffer
;
...
...
@@ -503,7 +488,7 @@ static void video_presenter_sample_present(struct video_presenter *presenter, IM
IDirect3DDevice9_StretchRect
(
device
,
surface
,
NULL
,
backbuffer
,
NULL
,
D3DTEXF_POINT
);
IDirect3DSurface9_GetDesc
(
surface
,
&
desc
);
scale_rect
(
&
src
,
desc
.
Width
,
desc
.
Height
,
&
presenter
->
src_rec
t
);
SetRect
(
&
src
,
0
,
0
,
desc
.
Width
,
desc
.
Heigh
t
);
IDirect3DSurface9_GetDesc
(
backbuffer
,
&
desc
);
SetRect
(
&
dst
,
0
,
0
,
desc
.
Width
,
desc
.
Height
);
...
...
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