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
e04e10b3
Commit
e04e10b3
authored
Oct 09, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add some tests for FixBrushOrgEx().
It appears to be a stub on modern systems. Does not generate EMF output either. Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
86708b36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
brush.c
dlls/gdi32/tests/brush.c
+24
-4
No files found.
dlls/gdi32/tests/brush.c
View file @
e04e10b3
...
...
@@ -411,16 +411,36 @@ static void test_brush_org( void )
{
HDC
hdc
=
GetDC
(
0
);
POINT
old
,
pt
;
BOOL
ret
;
SetBrushOrgEx
(
hdc
,
0
,
0
,
&
old
);
ret
=
SetBrushOrgEx
(
hdc
,
0
,
0
,
&
old
);
ok
(
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
SetBrushOrgEx
(
hdc
,
1
,
1
,
&
pt
);
ret
=
SetBrushOrgEx
(
hdc
,
1
,
1
,
&
pt
);
ok
(
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
pt
.
x
==
0
&&
pt
.
y
==
0
,
"got %ld,%ld
\n
"
,
pt
.
x
,
pt
.
y
);
SetBrushOrgEx
(
hdc
,
0x10000
,
-
1
,
&
pt
);
ret
=
SetBrushOrgEx
(
hdc
,
0x10000
,
-
1
,
&
pt
);
ok
(
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
pt
.
x
==
1
&&
pt
.
y
==
1
,
"got %ld,%ld
\n
"
,
pt
.
x
,
pt
.
y
);
SetBrushOrgEx
(
hdc
,
old
.
x
,
old
.
y
,
&
pt
);
ret
=
SetBrushOrgEx
(
hdc
,
old
.
x
,
old
.
y
,
&
pt
);
ok
(
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
pt
.
x
==
0x10000
&&
pt
.
y
==
-
1
,
"got %ld,%ld
\n
"
,
pt
.
x
,
pt
.
y
);
ret
=
GetBrushOrgEx
(
hdc
,
&
pt
);
ok
(
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
ok
(
pt
.
x
==
0
&&
pt
.
y
==
0
,
"got %ld,%ld
\n
"
,
pt
.
x
,
pt
.
y
);
pt
.
x
=
10
;
pt
.
y
=
20
;
ret
=
FixBrushOrgEx
(
hdc
,
2
,
3
,
&
pt
);
todo_wine
ok
(
!
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
todo_wine
ok
(
pt
.
x
==
10
&&
pt
.
y
==
20
,
"got %ld,%ld
\n
"
,
pt
.
x
,
pt
.
y
);
ret
=
GetBrushOrgEx
(
hdc
,
&
pt
);
ok
(
ret
,
"Unexpected return value %d.
\n
"
,
ret
);
todo_wine
ok
(
pt
.
x
==
0
&&
pt
.
y
==
0
,
"got %ld,%ld
\n
"
,
pt
.
x
,
pt
.
y
);
ReleaseDC
(
0
,
hdc
);
}
...
...
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