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
c6144893
Commit
c6144893
authored
Jan 13, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix the layered window tests for some Vista versions.
parent
41e6d717
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
win.c
dlls/user32/tests/win.c
+5
-5
No files found.
dlls/user32/tests/win.c
View file @
c6144893
...
...
@@ -4958,7 +4958,7 @@ static void test_layered_window(void)
ok
(
ret
,
"SetLayeredWindowAttributes should succeed on layered window
\n
"
);
ret
=
pGetLayeredWindowAttributes
(
hwnd
,
&
key
,
&
alpha
,
&
flags
);
ok
(
ret
,
"GetLayeredWindowAttributes should succeed on layered window
\n
"
);
ok
(
key
==
0x123456
,
"wrong color key %x
\n
"
,
key
);
ok
(
key
==
0x123456
||
key
==
0
,
"wrong color key %x
\n
"
,
key
);
ok
(
alpha
==
44
,
"wrong alpha %u
\n
"
,
alpha
);
ok
(
flags
==
LWA_ALPHA
,
"wrong flags %x
\n
"
,
flags
);
...
...
@@ -4987,24 +4987,24 @@ static void test_layered_window(void)
ok
(
alpha
==
22
||
alpha
==
33
,
"wrong alpha %u
\n
"
,
alpha
);
ok
(
flags
==
LWA_COLORKEY
,
"wrong flags %x
\n
"
,
flags
);
/* color key
always changed
*/
/* color key
may or may not be changed without LWA_COLORKEY
*/
ret
=
pSetLayeredWindowAttributes
(
hwnd
,
0x999999
,
44
,
0
);
ok
(
ret
,
"SetLayeredWindowAttributes should succeed on layered window
\n
"
);
alpha
=
0
;
ret
=
pGetLayeredWindowAttributes
(
hwnd
,
&
key
,
&
alpha
,
&
flags
);
ok
(
ret
,
"GetLayeredWindowAttributes should succeed on layered window
\n
"
);
ok
(
key
==
0x999999
,
"wrong color key %x
\n
"
,
key
);
ok
(
key
==
0x
888888
||
key
==
0x
999999
,
"wrong color key %x
\n
"
,
key
);
ok
(
alpha
==
22
||
alpha
==
44
,
"wrong alpha %u
\n
"
,
alpha
);
ok
(
flags
==
0
,
"wrong flags %x
\n
"
,
flags
);
/* default alpha is 0 */
/* default alpha
and color key
is 0 */
SetWindowLong
(
hwnd
,
GWL_EXSTYLE
,
GetWindowLong
(
hwnd
,
GWL_EXSTYLE
)
&
~
WS_EX_LAYERED
);
SetWindowLong
(
hwnd
,
GWL_EXSTYLE
,
GetWindowLong
(
hwnd
,
GWL_EXSTYLE
)
|
WS_EX_LAYERED
);
ret
=
pSetLayeredWindowAttributes
(
hwnd
,
0x222222
,
55
,
0
);
ok
(
ret
,
"SetLayeredWindowAttributes should succeed on layered window
\n
"
);
ret
=
pGetLayeredWindowAttributes
(
hwnd
,
&
key
,
&
alpha
,
&
flags
);
ok
(
ret
,
"GetLayeredWindowAttributes should succeed on layered window
\n
"
);
ok
(
key
==
0x222222
,
"wrong color key %x
\n
"
,
key
);
ok
(
key
==
0
||
key
==
0
x222222
,
"wrong color key %x
\n
"
,
key
);
ok
(
alpha
==
0
||
alpha
==
55
,
"wrong alpha %u
\n
"
,
alpha
);
ok
(
flags
==
0
,
"wrong flags %x
\n
"
,
flags
);
...
...
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