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
714991bf
Commit
714991bf
authored
Oct 26, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Fix a test for Vista.
parent
f9dba294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
dsurface.c
dlls/ddraw/tests/dsurface.c
+12
-2
No files found.
dlls/ddraw/tests/dsurface.c
View file @
714991bf
...
...
@@ -287,8 +287,18 @@ static void SrcColorKey32BlitTest(void)
ok
(
rc
==
DD_OK
,
"Lock returned: %x
\n
"
,
rc
);
ok
((
ddsd2
.
dwFlags
&
DDSD_LPSURFACE
)
==
0
,
"Surface desc has LPSURFACE Flags set
\n
"
);
lpData
=
(
LPDWORD
)
ddsd2
.
lpSurface
;
ok
((
lpData
[
0
]
==
0x77010203
)
&&
(
lpData
[
1
]
==
0x00010203
)
&&
(
lpData
[
2
]
==
0xCCCCCCCC
)
&&
(
lpData
[
3
]
==
0xCCCCCCCC
),
"Destination data after blitting is not correct
\n
"
);
/* Different behavior on some drivers / windows versions. Some versions ignore the X channel when
* color keying, but copy it to the destination surface. Others apply it for color keying, but
* do not copy it into the destination surface.
*/
if
(
lpData
[
0
]
==
0x00010203
)
{
trace
(
"X channel was not copied into the destination surface
\n
"
);
ok
((
lpData
[
0
]
==
0x00010203
)
&&
(
lpData
[
1
]
==
0x00010203
)
&&
(
lpData
[
2
]
==
0x00FF00FF
)
&&
(
lpData
[
3
]
==
0xCCCCCCCC
),
"Destination data after blitting is not correct
\n
"
);
}
else
{
ok
((
lpData
[
0
]
==
0x77010203
)
&&
(
lpData
[
1
]
==
0x00010203
)
&&
(
lpData
[
2
]
==
0xCCCCCCCC
)
&&
(
lpData
[
3
]
==
0xCCCCCCCC
),
"Destination data after blitting is not correct
\n
"
);
}
rc
=
IDirectDrawSurface_Unlock
(
lpDst
,
NULL
);
ok
(
rc
==
DD_OK
,
"Unlock returned: %x
\n
"
,
rc
);
...
...
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