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
486531ca
Commit
486531ca
authored
May 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr: Respect RGB format stride in GetCurrentImage.
parent
df91b314
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
presenter.c
dlls/evr/presenter.c
+2
-1
evr.c
dlls/evr/tests/evr.c
+1
-2
No files found.
dlls/evr/presenter.c
View file @
486531ca
...
...
@@ -1531,7 +1531,8 @@ static HRESULT WINAPI video_presenter_control_GetCurrentImage(IMFVideoDisplayCon
{
if
(
SUCCEEDED
(
hr
=
IDirect3DSurface9_LockRect
(
readback
,
&
mapped_rect
,
NULL
,
D3DLOCK_READONLY
)))
{
memcpy
(
*
dib
,
mapped_rect
.
pBits
,
*
dib_size
);
hr
=
MFCopyImage
(
stride
<
0
?
*
dib
+
*
dib_size
+
stride
:
*
dib
,
stride
,
mapped_rect
.
pBits
,
mapped_rect
.
Pitch
,
abs
(
stride
),
surface_desc
.
Height
);
IDirect3DSurface9_UnlockRect
(
readback
);
}
}
...
...
dlls/evr/tests/evr.c
View file @
486531ca
...
...
@@ -3466,8 +3466,7 @@ static void test_presenter_orientation(const GUID *subtype)
SetRect
(
&
rect
,
0
,
0
,
header
.
biWidth
,
header
.
biHeight
);
diff
=
check_rgb32_data
(
L"rgb32frame-flip.bmp"
,
data
,
header
.
biSizeImage
,
&
rect
);
todo_wine
ok
(
diff
<=
3
,
"Unexpected %lu%% diff
\n
"
,
diff
);
ok
(
diff
<=
5
,
"Unexpected %lu%% diff
\n
"
,
diff
);
CoTaskMemFree
(
data
);
hr
=
IMFVideoPresenter_ProcessMessage
(
presenter
,
MFVP_MESSAGE_ENDSTREAMING
,
0
);
...
...
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