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
c2784e08
Commit
c2784e08
authored
May 29, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Improve support of bitmaps without a color table in PutImage.
parent
50d53928
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+12
-3
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
c2784e08
...
...
@@ -871,16 +871,25 @@ done:
static
BOOL
matching_color_info
(
const
dib_info
*
dib
,
const
BITMAPINFO
*
info
)
{
const
RGBQUAD
*
color_table
=
info
->
bmiColors
;
switch
(
info
->
bmiHeader
.
biBitCount
)
{
case
1
:
if
(
dib
->
color_table_size
!=
info
->
bmiHeader
.
biClrUsed
)
return
FALSE
;
return
!
memcmp
(
color_table
,
dib
->
color_table
,
dib
->
color_table_size
*
sizeof
(
RGBQUAD
)
);
case
4
:
case
8
:
if
(
!
info
->
bmiHeader
.
biClrUsed
)
{
RGBQUAD
*
color_table
=
(
RGBQUAD
*
)((
char
*
)
info
+
info
->
bmiHeader
.
biSize
)
;
if
(
dib
->
color_table_size
!=
info
->
bmiHeader
.
biClrUsed
)
return
FALSE
;
return
!
memcmp
(
color_table
,
dib
->
color_table
,
dib
->
color_table_size
*
sizeof
(
RGBQUAD
)
);
if
(
!
dib
->
color_table_size
)
return
TRUE
;
if
(
dib
->
color_table_size
!=
1
<<
info
->
bmiHeader
.
biBitCount
)
return
FALSE
;
color_table
=
get_default_color_table
(
info
->
bmiHeader
.
biBitCount
);
}
else
if
(
dib
->
color_table_size
!=
info
->
bmiHeader
.
biClrUsed
)
return
FALSE
;
return
!
memcmp
(
color_table
,
dib
->
color_table
,
dib
->
color_table_size
*
sizeof
(
RGBQUAD
)
);
case
16
:
{
...
...
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