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
d61e1ffa
Commit
d61e1ffa
authored
Jul 28, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Jul 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use the helper to retrieve the number of colours.
parent
3460665c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dib.c
dlls/gdi32/dib.c
+3
-3
No files found.
dlls/gdi32/dib.c
View file @
d61e1ffa
...
...
@@ -147,14 +147,12 @@ static BOOL bitmapinfo_from_user_bitmapinfo( BITMAPINFO *dst, const BITMAPINFO *
if
(
bitmap_type
==
-
1
)
return
FALSE
;
colors
=
(
bpp
>
8
)
?
0
:
1
<<
bpp
;
if
(
bitmap_type
==
1
)
{
dst
->
bmiHeader
=
info
->
bmiHeader
;
dst
->
bmiHeader
.
biSize
=
sizeof
(
dst
->
bmiHeader
);
if
(
info
->
bmiHeader
.
biClrUsed
)
colors
=
info
->
bmiHeader
.
biClrUsed
;
colors
=
get_dib_num_of_colors
(
dst
)
;
if
(
info
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
)
/* bitfields are always at bmiColors even in larger structures */
...
...
@@ -184,6 +182,8 @@ static BOOL bitmapinfo_from_user_bitmapinfo( BITMAPINFO *dst, const BITMAPINFO *
dst
->
bmiHeader
.
biClrUsed
=
0
;
dst
->
bmiHeader
.
biClrImportant
=
0
;
colors
=
get_dib_num_of_colors
(
dst
);
if
(
colors
)
{
if
(
coloruse
==
DIB_PAL_COLORS
)
...
...
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