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
c011267b
Commit
c011267b
authored
Nov 15, 1998
by
Eric Kohl
Committed by
Alexandre Julliard
Nov 15, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed retrieval of invalid palette data in GetDIBits().
parent
04e57f97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
dib.c
objects/dib.c
+6
-5
No files found.
objects/dib.c
View file @
c011267b
...
...
@@ -461,12 +461,13 @@ INT32 WINAPI GetDIBits32(
return
0
;
}
/* Transfer color info
*/
/* Transfer color info (FIXME)
*/
if
(
info
->
bmiHeader
.
biBitCount
<=
8
)
{
int
colors
=
info
->
bmiHeader
.
biClrUsed
;
if
(
!
colors
&&
(
info
->
bmiHeader
.
biBitCount
<=
8
))
colors
=
1
<<
info
->
bmiHeader
.
biBitCount
;
if
(
info
&&
(
info
->
bmiHeader
.
biBitCount
<=
8
)
&&
(
bmp
->
bitmap
.
bmBitsPixel
<=
8
))
{
int
colors
=
1
<<
info
->
bmiHeader
.
biBitCount
;
info
->
bmiHeader
.
biClrUsed
=
0
;
palEntry
=
palette
->
logpalette
.
palPalEntry
;
for
(
i
=
0
;
i
<
colors
;
i
++
,
palEntry
++
)
{
...
...
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