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
a373c353
Commit
a373c353
authored
May 07, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Test RGBQUAD.rgbReserved in SetDIBColorTable.
parent
c66f0019
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
bitmap.c
dlls/gdi32/tests/bitmap.c
+15
-0
No files found.
dlls/gdi32/tests/bitmap.c
View file @
a373c353
...
@@ -854,6 +854,21 @@ static void test_dibsections(void)
...
@@ -854,6 +854,21 @@ static void test_dibsections(void)
i
,
colors
[
i
].
rgbRed
,
colors
[
i
].
rgbGreen
,
colors
[
i
].
rgbBlue
,
colors
[
i
].
rgbReserved
);
i
,
colors
[
i
].
rgbRed
,
colors
[
i
].
rgbGreen
,
colors
[
i
].
rgbBlue
,
colors
[
i
].
rgbReserved
);
}
}
rgb
[
0
].
rgbRed
=
1
;
rgb
[
0
].
rgbGreen
=
2
;
rgb
[
0
].
rgbBlue
=
3
;
rgb
[
0
].
rgbReserved
=
123
;
ret
=
SetDIBColorTable
(
hdcmem
,
0
,
1
,
rgb
);
ok
(
ret
==
1
,
"SetDIBColorTable returned unexpected result %u
\n
"
,
ret
);
ok
(
rgb
[
0
].
rgbReserved
==
123
,
"Expected rgbReserved = 123, got %u
\n
"
,
rgb
[
0
].
rgbReserved
);
ret
=
GetDIBColorTable
(
hdcmem
,
0
,
1
,
rgb
);
ok
(
ret
==
1
,
"GetDIBColorTable returned unexpected result %u
\n
"
,
ret
);
ok
(
rgb
[
0
].
rgbRed
==
1
,
"Expected rgbRed = 1, got %u
\n
"
,
rgb
[
0
].
rgbRed
);
ok
(
rgb
[
0
].
rgbGreen
==
2
,
"Expected rgbGreen = 2, got %u
\n
"
,
rgb
[
0
].
rgbGreen
);
ok
(
rgb
[
0
].
rgbBlue
==
3
,
"Expected rgbBlue = 3, got %u
\n
"
,
rgb
[
0
].
rgbBlue
);
todo_wine
ok
(
rgb
[
0
].
rgbReserved
==
0
,
"Expected rgbReserved = 0, got %u
\n
"
,
rgb
[
0
].
rgbReserved
);
SelectObject
(
hdcmem
,
oldbm
);
SelectObject
(
hdcmem
,
oldbm
);
DeleteObject
(
hdib
);
DeleteObject
(
hdib
);
DeleteObject
(
hpal
);
DeleteObject
(
hpal
);
...
...
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