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
514b006d
Commit
514b006d
authored
Sep 20, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Force colors to black and white for 1-bpp source in AlphaBlend.
parent
fb4dc8a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
bitblt.c
dlls/gdi32/bitblt.c
+14
-0
No files found.
dlls/gdi32/bitblt.c
View file @
514b006d
...
@@ -293,6 +293,20 @@ BOOL nulldrv_AlphaBlend( PHYSDEV dst_dev, struct bitblt_coords *dst,
...
@@ -293,6 +293,20 @@ BOOL nulldrv_AlphaBlend( PHYSDEV dst_dev, struct bitblt_coords *dst,
err
=
dst_dev
->
funcs
->
pBlendImage
(
dst_dev
,
dst_info
,
&
bits
,
src
,
dst
,
func
);
err
=
dst_dev
->
funcs
->
pBlendImage
(
dst_dev
,
dst_info
,
&
bits
,
src
,
dst
,
func
);
if
(
err
==
ERROR_BAD_FORMAT
)
if
(
err
==
ERROR_BAD_FORMAT
)
{
{
/* 1-bpp source without a color table uses black & white */
if
(
src_info
->
bmiHeader
.
biBitCount
==
1
&&
!
src_info
->
bmiHeader
.
biClrUsed
)
{
src_info
->
bmiColors
[
0
].
rgbRed
=
0
;
src_info
->
bmiColors
[
0
].
rgbGreen
=
0
;
src_info
->
bmiColors
[
0
].
rgbBlue
=
0
;
src_info
->
bmiColors
[
0
].
rgbReserved
=
0
;
src_info
->
bmiColors
[
1
].
rgbRed
=
0xff
;
src_info
->
bmiColors
[
1
].
rgbGreen
=
0xff
;
src_info
->
bmiColors
[
1
].
rgbBlue
=
0xff
;
src_info
->
bmiColors
[
1
].
rgbReserved
=
0
;
src_info
->
bmiHeader
.
biClrUsed
=
2
;
}
err
=
convert_bits
(
src_info
,
src
,
dst_info
,
&
bits
);
err
=
convert_bits
(
src_info
,
src
,
dst_info
,
&
bits
);
if
(
!
err
)
err
=
dst_dev
->
funcs
->
pBlendImage
(
dst_dev
,
dst_info
,
&
bits
,
src
,
dst
,
func
);
if
(
!
err
)
err
=
dst_dev
->
funcs
->
pBlendImage
(
dst_dev
,
dst_info
,
&
bits
,
src
,
dst
,
func
);
}
}
...
...
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