Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
54be3001
Commit
54be3001
authored
Sep 27, 2004
by
Michael Kaufmann
Committed by
Alexandre Julliard
Sep 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Add as many entries to the color map as specified by the DIB.
- Support bitmaps with a BITMAPV{4,5}HEADER.
parent
5539e288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
dib.c
dlls/x11drv/dib.c
+4
-7
No files found.
dlls/x11drv/dib.c
View file @
54be3001
...
...
@@ -231,10 +231,6 @@ int *X11DRV_DIB_GenColorMap( X11DRV_PDEVICE *physDev, int *colorMapping,
if
(
coloruse
==
DIB_RGB_COLORS
)
{
int
max
=
1
<<
depth
;
if
(
end
>
max
)
end
=
max
;
if
(
quads
)
{
RGBQUAD
*
rgb
=
(
RGBQUAD
*
)
colorPtr
;
...
...
@@ -294,15 +290,16 @@ int *X11DRV_DIB_BuildColorMap( X11DRV_PDEVICE *physDev, WORD coloruse, WORD dept
const
void
*
colorPtr
;
int
*
colorMapping
;
if
((
isInfo
=
(
info
->
bmiHeader
.
biSize
==
sizeof
(
BITMAPINFO
HEADER
))))
if
((
isInfo
=
(
info
->
bmiHeader
.
biSize
!=
sizeof
(
BITMAPCORE
HEADER
))))
{
/* assume BITMAPINFOHEADER */
colors
=
info
->
bmiHeader
.
biClrUsed
;
if
(
!
colors
)
colors
=
1
<<
info
->
bmiHeader
.
biBitCount
;
colorPtr
=
info
->
bmiColors
;
}
else
/*
assume BITMAPCOREINFO
*/
else
/*
BITMAPCOREHEADER
*/
{
colors
=
1
<<
((
BITMAPCOREHEADER
*
)
&
info
->
bmiHeader
)
->
bcBitCount
;
colors
=
1
<<
((
BITMAPCOREHEADER
*
)
info
)
->
bcBitCount
;
colorPtr
=
(
WORD
*
)((
BITMAPCOREINFO
*
)
info
)
->
bmciColors
;
}
...
...
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