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
b8a8e1bd
Commit
b8a8e1bd
authored
May 22, 2017
by
Vincent Povirk
Committed by
Alexandre Julliard
May 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Check SHADEBLENDCAPS only for printer devices.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e880c9ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
graphics.c
dlls/gdiplus/graphics.c
+4
-2
No files found.
dlls/gdiplus/graphics.c
View file @
b8a8e1bd
...
...
@@ -324,7 +324,8 @@ static void transform_and_round_points(GpGraphics *graphics, POINT *pti,
static
void
gdi_alpha_blend
(
GpGraphics
*
graphics
,
INT
dst_x
,
INT
dst_y
,
INT
dst_width
,
INT
dst_height
,
HDC
hdc
,
INT
src_x
,
INT
src_y
,
INT
src_width
,
INT
src_height
)
{
if
(
GetDeviceCaps
(
graphics
->
hdc
,
SHADEBLENDCAPS
)
==
SB_NONE
)
if
(
GetDeviceCaps
(
graphics
->
hdc
,
TECHNOLOGY
)
==
DT_RASPRINTER
&&
GetDeviceCaps
(
graphics
->
hdc
,
SHADEBLENDCAPS
)
==
SB_NONE
)
{
TRACE
(
"alpha blending not supported by device, fallback to StretchBlt
\n
"
);
...
...
@@ -404,7 +405,8 @@ static GpStatus alpha_blend_hdc_pixels(GpGraphics *graphics, INT dst_x, INT dst_
hbitmap
=
CreateDIBSection
(
hdc
,
(
BITMAPINFO
*
)
&
bih
,
DIB_RGB_COLORS
,
(
void
**
)
&
temp_bits
,
NULL
,
0
);
if
(
GetDeviceCaps
(
graphics
->
hdc
,
SHADEBLENDCAPS
)
==
SB_NONE
||
if
((
GetDeviceCaps
(
graphics
->
hdc
,
TECHNOLOGY
)
==
DT_RASPRINTER
&&
GetDeviceCaps
(
graphics
->
hdc
,
SHADEBLENDCAPS
)
==
SB_NONE
)
||
fmt
&
PixelFormatPAlpha
)
memcpy
(
temp_bits
,
src
,
src_width
*
src_height
*
4
);
else
...
...
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