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
fa239446
Commit
fa239446
authored
Jul 13, 2007
by
Jeremy White
Committed by
Alexandre Julliard
Jul 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Do not fill in the color table if lpvBits is NULL.
parent
2de22f1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
dib.c
dlls/gdi32/dib.c
+7
-3
No files found.
dlls/gdi32/dib.c
View file @
fa239446
...
...
@@ -972,11 +972,15 @@ INT WINAPI GetDIBits(
break
;
case
16
:
if
(
bits
)
{
/* Add color only when bits is given, as per MSDN */
((
PDWORD
)
info
->
bmiColors
)[
0
]
=
0xf800
;
((
PDWORD
)
info
->
bmiColors
)[
1
]
=
0x07e0
;
((
PDWORD
)
info
->
bmiColors
)[
2
]
=
0x001f
;
}
info
->
bmiHeader
.
biBitCount
=
16
;
info
->
bmiHeader
.
biCompression
=
BI_BITFIELDS
;
((
PDWORD
)
info
->
bmiColors
)[
0
]
=
0xf800
;
((
PDWORD
)
info
->
bmiColors
)[
1
]
=
0x07e0
;
((
PDWORD
)
info
->
bmiColors
)[
2
]
=
0x001f
;
break
;
default:
...
...
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