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
f4e9bdb9
Commit
f4e9bdb9
authored
Sep 07, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Always set biClrUsed in internal BITMAPINFO structures.
parent
9e50294f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dib.c
dlls/gdi32/dib.c
+2
-3
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+1
-0
No files found.
dlls/gdi32/dib.c
View file @
f4e9bdb9
...
...
@@ -203,6 +203,7 @@ static BOOL bitmapinfo_from_user_bitmapinfo( BITMAPINFO *dst, const BITMAPINFO *
dst
->
bmiColors
[
i
].
rgbReserved
=
0
;
}
}
dst
->
bmiHeader
.
biClrUsed
=
colors
;
}
return
TRUE
;
}
...
...
@@ -995,6 +996,7 @@ static void fill_default_color_table( BITMAPINFO *info )
default:
ERR
(
"called with bitcount %d
\n
"
,
info
->
bmiHeader
.
biBitCount
);
}
info
->
bmiHeader
.
biClrUsed
=
1
<<
info
->
bmiHeader
.
biBitCount
;
}
void
get_ddb_bitmapinfo
(
BITMAPOBJ
*
bmp
,
BITMAPINFO
*
info
)
...
...
@@ -1180,10 +1182,7 @@ INT WINAPI GetDIBits(
/* fill out the src colour table, if it needs one */
if
(
src_info
->
bmiHeader
.
biBitCount
<=
8
&&
src_info
->
bmiHeader
.
biClrUsed
==
0
)
{
fill_default_color_table
(
src_info
);
src_info
->
bmiHeader
.
biClrUsed
=
1
<<
src_info
->
bmiHeader
.
biBitCount
;
}
/* if the src and dst are the same depth, copy the colour info across */
if
(
dst_info
->
bmiHeader
.
biBitCount
==
src_info
->
bmiHeader
.
biBitCount
&&
coloruse
==
DIB_RGB_COLORS
)
...
...
dlls/gdi32/dibdrv/bitblt.c
View file @
f4e9bdb9
...
...
@@ -664,6 +664,7 @@ static BOOL matching_color_info( const dib_info *dib, const BITMAPINFO *info )
case
8
:
{
RGBQUAD
*
color_table
=
(
RGBQUAD
*
)((
char
*
)
info
+
info
->
bmiHeader
.
biSize
);
if
(
!
info
->
bmiHeader
.
biClrUsed
)
return
FALSE
;
if
(
dib
->
color_table_size
!=
get_dib_num_of_colors
(
info
))
return
FALSE
;
return
!
memcmp
(
color_table
,
dib
->
color_table
,
dib
->
color_table_size
*
sizeof
(
RGBQUAD
)
);
}
...
...
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