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
64c67617
Commit
64c67617
authored
Nov 04, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: GetDestinationPosition() returns the actual window width.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51895145
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Makefile.in
dlls/quartz/tests/Makefile.in
+1
-1
filtergraph.c
dlls/quartz/tests/filtergraph.c
+4
-2
No files found.
dlls/quartz/tests/Makefile.in
View file @
64c67617
TESTDLL
=
quartz.dll
IMPORTS
=
oleaut32 ole32 advapi32
IMPORTS
=
oleaut32 ole32 advapi32
user32
C_SRCS
=
\
avisplitter.c
\
...
...
dlls/quartz/tests/filtergraph.c
View file @
64c67617
...
...
@@ -53,7 +53,7 @@ static int createfiltergraph(void)
static
void
test_basic_video
(
void
)
{
IBasicVideo
*
pbv
;
LONG
video_width
,
video_height
;
LONG
video_width
,
video_height
,
window_width
;
LONG
left
,
top
,
width
,
height
;
HRESULT
hr
;
...
...
@@ -158,6 +158,8 @@ static void test_basic_video(void)
ok
(
height
==
video_height
/
4
+
1
,
"expected %d, got %d
\n
"
,
video_height
/
4
+
1
,
height
);
/* test destination rectangle */
window_width
=
max
(
video_width
,
GetSystemMetrics
(
SM_CXMIN
)
-
2
*
GetSystemMetrics
(
SM_CXFRAME
));
hr
=
IBasicVideo_GetDestinationPosition
(
pbv
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IBasicVideo_GetDestinationPosition returned: %x
\n
"
,
hr
);
hr
=
IBasicVideo_GetDestinationPosition
(
pbv
,
&
left
,
&
top
,
NULL
,
NULL
);
...
...
@@ -168,7 +170,7 @@ static void test_basic_video(void)
ok
(
hr
==
S_OK
,
"Cannot get destination position returned: %x
\n
"
,
hr
);
ok
(
left
==
0
,
"expected 0, got %d
\n
"
,
left
);
ok
(
top
==
0
,
"expected 0, got %d
\n
"
,
top
);
todo_wine
ok
(
width
==
video_width
,
"expected %d, got %d
\n
"
,
video
_width
,
width
);
todo_wine
ok
(
width
==
window_width
,
"expected %d, got %d
\n
"
,
window
_width
,
width
);
todo_wine
ok
(
height
==
video_height
,
"expected %d, got %d
\n
"
,
video_height
,
height
);
hr
=
IBasicVideo_SetDestinationPosition
(
pbv
,
0
,
0
,
0
,
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