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
f9c76be0
Commit
f9c76be0
authored
Sep 14, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Trigger a repaint on layered windows the first time the attributes are set.
parent
24fa9a2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
window.c
server/window.c
+4
-0
No files found.
server/window.c
View file @
f9c76be0
...
@@ -2794,12 +2794,16 @@ DECL_HANDLER(set_window_layered_info)
...
@@ -2794,12 +2794,16 @@ DECL_HANDLER(set_window_layered_info)
if
(
win
->
ex_style
&
WS_EX_LAYERED
)
if
(
win
->
ex_style
&
WS_EX_LAYERED
)
{
{
int
was_layered
=
win
->
is_layered
;
if
(
req
->
flags
&
LWA_ALPHA
)
win
->
alpha
=
req
->
alpha
;
if
(
req
->
flags
&
LWA_ALPHA
)
win
->
alpha
=
req
->
alpha
;
else
if
(
!
win
->
is_layered
)
win
->
alpha
=
0
;
/* alpha init value is 0 */
else
if
(
!
win
->
is_layered
)
win
->
alpha
=
0
;
/* alpha init value is 0 */
win
->
color_key
=
req
->
color_key
;
win
->
color_key
=
req
->
color_key
;
win
->
layered_flags
=
req
->
flags
;
win
->
layered_flags
=
req
->
flags
;
win
->
is_layered
=
1
;
win
->
is_layered
=
1
;
/* repaint since we know now it's not going to use UpdateLayeredWindow */
if
(
!
was_layered
)
redraw_window
(
win
,
0
,
1
,
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_FRAME
);
}
}
else
set_win32_error
(
ERROR_INVALID_WINDOW_HANDLE
);
else
set_win32_error
(
ERROR_INVALID_WINDOW_HANDLE
);
}
}
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