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
dbff4f42
Commit
dbff4f42
authored
Oct 03, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Copy the existing surface bits when a dirty rectangle is specified in UpdateLayeredWindow.
parent
4ac1a5ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
window.c
dlls/winex11.drv/window.c
+18
-9
No files found.
dlls/winex11.drv/window.c
View file @
dbff4f42
...
...
@@ -2398,17 +2398,26 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
if
(
!
(
hdc
=
CreateCompatibleDC
(
0
)))
goto
done
;
SelectObject
(
hdc
,
dib
);
if
(
!
(
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
->
dwFlags
&
ULW_ALPHA
)
?
*
info
->
pblend
:
blend
)))
goto
done
;
surface
->
funcs
->
lock
(
surface
);
memcpy
(
dst_bits
,
src_bits
,
bmi
->
bmiHeader
.
biSizeImage
);
add_bounds_rect
(
surface
->
funcs
->
get_bounds
(
surface
),
&
rect
);
if
(
info
->
prcDirty
)
{
memcpy
(
src_bits
,
dst_bits
,
bmi
->
bmiHeader
.
biSizeImage
);
PatBlt
(
hdc
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
BLACKNESS
);
}
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
->
dwFlags
&
ULW_ALPHA
)
?
*
info
->
pblend
:
blend
);
if
(
ret
)
{
memcpy
(
dst_bits
,
src_bits
,
bmi
->
bmiHeader
.
biSizeImage
);
add_bounds_rect
(
surface
->
funcs
->
get_bounds
(
surface
),
&
rect
);
}
surface
->
funcs
->
unlock
(
surface
);
surface
->
funcs
->
flush
(
surface
);
...
...
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