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
dd579e4c
Commit
dd579e4c
authored
Oct 16, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix brush tests compilation with __WINESRC__ defined.
parent
c99b2643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
brush.c
dlls/gdi32/tests/brush.c
+6
-6
No files found.
dlls/gdi32/tests/brush.c
View file @
dd579e4c
...
...
@@ -49,7 +49,7 @@ static void test_solidbrush(void)
for
(
i
=
0
;
i
<
sizeof
(
stock
)
/
sizeof
(
stock
[
0
]);
i
++
)
{
solidBrush
=
CreateSolidBrush
(
stock
[
i
].
color
);
if
(
stock
[
i
].
stockobj
!=
-
1
)
{
stockBrush
=
GetStockObject
(
stock
[
i
].
stockobj
);
ok
(
stockBrush
!=
solidBrush
||
...
...
@@ -59,20 +59,20 @@ static void test_solidbrush(void)
else
stockBrush
=
NULL
;
memset
(
&
br
,
0
,
sizeof
(
br
));
ret
=
GetObject
(
solidBrush
,
sizeof
(
br
),
&
br
);
ret
=
GetObject
W
(
solidBrush
,
sizeof
(
br
),
&
br
);
ok
(
ret
!=
0
,
"GetObject on solid %s brush failed, error=%d
\n
"
,
stock
[
i
].
name
,
GetLastError
());
ok
(
br
.
lbStyle
==
BS_SOLID
,
"%s brush has wrong style, got %d expected %d
\n
"
,
stock
[
i
].
name
,
br
.
lbStyle
,
BS_SOLID
);
ok
(
br
.
lbColor
==
stock
[
i
].
color
,
"%s brush has wrong color, got 0x%08x expected 0x%08x
\n
"
,
stock
[
i
].
name
,
br
.
lbColor
,
stock
[
i
].
color
);
if
(
stockBrush
)
{
/* Sanity check, make sure the colors being compared do in fact have a stock brush */
ret
=
GetObject
(
stockBrush
,
sizeof
(
br
),
&
br
);
ret
=
GetObject
W
(
stockBrush
,
sizeof
(
br
),
&
br
);
ok
(
ret
!=
0
,
"GetObject on stock %s brush failed, error=%d
\n
"
,
stock
[
i
].
name
,
GetLastError
());
ok
(
br
.
lbColor
==
stock
[
i
].
color
,
"stock %s brush unexpected color, got 0x%08x expected 0x%08x
\n
"
,
stock
[
i
].
name
,
br
.
lbColor
,
stock
[
i
].
color
);
}
DeleteObject
(
solidBrush
);
ret
=
GetObject
(
solidBrush
,
sizeof
(
br
),
&
br
);
ret
=
GetObject
W
(
solidBrush
,
sizeof
(
br
),
&
br
);
ok
(
ret
==
0
||
broken
(
ret
!=
0
),
/* win9x */
"GetObject succeeded on a deleted %s brush
\n
"
,
stock
[
i
].
name
);
...
...
@@ -92,7 +92,7 @@ static void test_hatch_brush(void)
if
(
i
<
HS_API_MAX
)
{
ok
(
brush
!=
0
,
"%u: CreateHatchBrush failed err %u
\n
"
,
i
,
GetLastError
()
);
size
=
GetObject
(
brush
,
sizeof
(
lb
),
&
lb
);
size
=
GetObject
W
(
brush
,
sizeof
(
lb
),
&
lb
);
ok
(
size
==
sizeof
(
lb
),
"wrong size %u
\n
"
,
size
);
ok
(
lb
.
lbColor
==
RGB
(
12
,
34
,
56
),
"wrong color %08x
\n
"
,
lb
.
lbColor
);
if
(
i
<=
HS_DIAGCROSS
)
...
...
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