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
2e724343
Commit
2e724343
authored
Oct 19, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Oct 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add tests for GetPixel.
parent
f6c7e96a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
dib.c
dlls/gdi32/tests/dib.c
+12
-1
No files found.
dlls/gdi32/tests/dib.c
View file @
2e724343
...
...
@@ -1990,11 +1990,22 @@ static void draw_graphics(HDC hdc, BITMAPINFO *bmi, BYTE *bits, const char ***sh
for
(
i
=
0
;
i
<
256
;
i
++
)
{
COLORREF
s
;
COLORREF
s
,
g
;
s
=
SetPixel
(
hdc
,
i
*
2
,
10
,
DIBINDEX
(
i
)
);
g
=
GetPixel
(
hdc
,
i
*
2
,
10
);
ok
(
s
==
g
,
"got %08x and %08x
\n
"
,
s
,
g
);
s
=
SetPixel
(
hdc
,
i
*
2
,
20
,
PALETTEINDEX
(
i
)
);
g
=
GetPixel
(
hdc
,
i
*
2
,
20
);
ok
(
s
==
g
,
"got %08x and %08x
\n
"
,
s
,
g
);
s
=
SetPixel
(
hdc
,
i
*
2
,
30
,
RGB
(
(
i
&
0x07
)
<<
5
,
(
i
&
0x38
)
<<
2
,
i
&
0xc0
)
);
g
=
GetPixel
(
hdc
,
i
*
2
,
30
);
ok
(
s
==
g
,
"got %08x and %08x
\n
"
,
s
,
g
);
s
=
SetPixel
(
hdc
,
i
*
2
,
40
,
PALETTERGB
(
(
i
&
0x07
)
<<
5
,
(
i
&
0x38
)
<<
2
,
i
&
0xc0
)
);
g
=
GetPixel
(
hdc
,
i
*
2
,
40
);
ok
(
s
==
g
,
"got %08x and %08x
\n
"
,
s
,
g
);
}
compare_hash
(
bmi
,
bits
,
sha1
,
"SetPixel"
);
...
...
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