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
de9d2249
Commit
de9d2249
authored
Oct 06, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Oct 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Ignore the alpha channel for blits to DDBs too.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ffed1a5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bitblt.c
dlls/gdi32/bitblt.c
+5
-2
No files found.
dlls/gdi32/bitblt.c
View file @
de9d2249
...
...
@@ -843,6 +843,7 @@ BOOL WINAPI GdiTransparentBlt( HDC hdcDest, int xDest, int yDest, int widthDest,
COLORREF
oldBackground
;
COLORREF
oldForeground
;
int
oldStretchMode
;
DIBSECTION
dib
;
if
(
widthDest
<
0
||
heightDest
<
0
||
widthSrc
<
0
||
heightSrc
<
0
)
{
TRACE
(
"Cannot mirror
\n
"
);
...
...
@@ -857,9 +858,11 @@ BOOL WINAPI GdiTransparentBlt( HDC hdcDest, int xDest, int yDest, int widthDest,
if
(
oldStretchMode
==
BLACKONWHITE
||
oldStretchMode
==
WHITEONBLACK
)
SetStretchBltMode
(
hdcSrc
,
COLORONCOLOR
);
hdcWork
=
CreateCompatibleDC
(
hdcDest
);
if
(
GetObjectType
(
hdcDest
)
!=
OBJ_MEMDC
&&
GetDeviceCaps
(
hdcDest
,
BITSPIXEL
)
==
32
)
if
((
GetObjectType
(
hdcDest
)
!=
OBJ_MEMDC
||
GetObjectW
(
GetCurrentObject
(
hdcDest
,
OBJ_BITMAP
),
sizeof
(
dib
),
&
dib
)
==
sizeof
(
BITMAP
))
&&
GetDeviceCaps
(
hdcDest
,
BITSPIXEL
)
==
32
)
{
/* screen DCs are not supposed to have an alpha channel, so use a 24-bpp bitmap as copy */
/* screen DCs
or DDBs
are not supposed to have an alpha channel, so use a 24-bpp bitmap as copy */
BITMAPINFO
info
;
info
.
bmiHeader
.
biSize
=
sizeof
(
info
.
bmiHeader
);
info
.
bmiHeader
.
biWidth
=
widthDest
;
...
...
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