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
2500e21a
Commit
2500e21a
authored
Oct 04, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Hold a reference to the surface in UpdateLayeredWindow.
parent
e41a4828
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
window.c
dlls/winex11.drv/window.c
+8
-2
No files found.
dlls/winex11.drv/window.c
View file @
2500e21a
...
...
@@ -2386,11 +2386,15 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
}
else
set_surface_color_key
(
surface
,
color_key
);
if
(
surface
)
window_surface_add_ref
(
surface
);
release_win_data
(
data
);
if
(
!
surface
)
return
FALSE
;
if
(
!
info
->
hdcSrc
)
return
TRUE
;
if
(
info
->
prcDirty
&&
!
IntersectRect
(
&
rect
,
&
rect
,
info
->
prcDirty
))
return
TRUE
;
if
(
!
info
->
hdcSrc
)
{
window_surface_release
(
surface
);
return
TRUE
;
}
dst_bits
=
surface
->
funcs
->
get_info
(
surface
,
bmi
);
...
...
@@ -2403,6 +2407,7 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
if
(
info
->
prcDirty
)
{
IntersectRect
(
&
rect
,
&
rect
,
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
);
}
...
...
@@ -2422,6 +2427,7 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
surface
->
funcs
->
flush
(
surface
);
done:
window_surface_release
(
surface
);
if
(
hdc
)
DeleteDC
(
hdc
);
if
(
dib
)
DeleteObject
(
dib
);
return
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