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
daae0d6a
Commit
daae0d6a
authored
Jun 27, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Jun 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use logical co-ords to call GdiAlphaBlend().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84bc9c3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
window.c
dlls/winex11.drv/window.c
+7
-5
No files found.
dlls/winex11.drv/window.c
View file @
daae0d6a
...
...
@@ -2583,7 +2583,7 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
char
buffer
[
FIELD_OFFSET
(
BITMAPINFO
,
bmiColors
[
256
]
)];
BITMAPINFO
*
bmi
=
(
BITMAPINFO
*
)
buffer
;
void
*
src_bits
,
*
dst_bits
;
RECT
rect
;
RECT
rect
,
src_rect
;
HDC
hdc
=
0
;
HBITMAP
dib
;
BOOL
ret
=
FALSE
;
...
...
@@ -2631,11 +2631,13 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
memcpy
(
src_bits
,
dst_bits
,
bmi
->
bmiHeader
.
biSizeImage
);
PatBlt
(
hdc
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
BLACKNESS
);
}
src_rect
=
rect
;
if
(
info
->
pptSrc
)
OffsetRect
(
&
src_rect
,
info
->
pptSrc
->
x
,
info
->
pptSrc
->
y
);
DPtoLP
(
info
->
hdcSrc
,
(
POINT
*
)
&
src_rect
,
2
);
ret
=
GdiAlphaBlend
(
hdc
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
info
->
hdcSrc
,
rect
.
left
+
(
info
->
pptSrc
?
info
->
pptSrc
->
x
:
0
),
rect
.
top
+
(
info
->
pptSrc
?
info
->
pptSrc
->
y
:
0
),
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
info
->
hdcSrc
,
src_rect
.
left
,
src_rect
.
top
,
src_rect
.
right
-
src_rect
.
left
,
src_rect
.
bottom
-
src_rect
.
top
,
(
info
->
dwFlags
&
ULW_ALPHA
)
?
*
info
->
pblend
:
blend
);
if
(
ret
)
{
...
...
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