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
8485eb02
Commit
8485eb02
authored
Dec 21, 2006
by
Günther Brammer
Committed by
Alexandre Julliard
Dec 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Add a test for IDirectDrawSurface_SetColorKey.
parent
42d372eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
dsurface.c
dlls/ddraw/tests/dsurface.c
+22
-0
No files found.
dlls/ddraw/tests/dsurface.c
View file @
8485eb02
...
...
@@ -167,6 +167,7 @@ static void SrcColorKey32BlitTest(void)
LPDIRECTDRAWSURFACE
lpDst
;
DDSURFACEDESC
ddsd
;
DDSURFACEDESC
ddsd2
;
DDCOLORKEY
DDColorKey
;
LPDWORD
lpData
;
HRESULT
rc
;
...
...
@@ -223,6 +224,27 @@ static void SrcColorKey32BlitTest(void)
rc
=
IDirectDrawSurface_Unlock
(
lpDst
,
NULL
);
ok
(
rc
==
DD_OK
,
"Unlock returned: %x
\n
"
,
rc
);
/* Also test SetColorKey */
IDirectDrawSurface_GetColorKey
(
lpSrc
,
DDCKEY_SRCBLT
,
&
DDColorKey
);
ok
(
DDColorKey
.
dwColorSpaceLowValue
==
0xFF00FF
&&
DDColorKey
.
dwColorSpaceHighValue
==
0xFF00FF
,
"GetColorKey does not return the colorkey used at surface creation
\n
"
);
DDColorKey
.
dwColorSpaceLowValue
=
0x00FF00
;
DDColorKey
.
dwColorSpaceHighValue
=
0x00FF00
;
IDirectDrawSurface_SetColorKey
(
lpSrc
,
DDCKEY_SRCBLT
,
&
DDColorKey
);
DDColorKey
.
dwColorSpaceLowValue
=
0
;
DDColorKey
.
dwColorSpaceHighValue
=
0
;
IDirectDrawSurface_GetColorKey
(
lpSrc
,
DDCKEY_SRCBLT
,
&
DDColorKey
);
ok
(
DDColorKey
.
dwColorSpaceLowValue
==
0x00FF00
&&
DDColorKey
.
dwColorSpaceHighValue
==
0x00FF00
,
"GetColorKey does not return the colorkey set with SetColorKey
\n
"
);
ddsd
.
ddckCKSrcBlt
.
dwColorSpaceLowValue
=
0
;
ddsd
.
ddckCKSrcBlt
.
dwColorSpaceHighValue
=
0
;
IDirectDrawSurface_GetSurfaceDesc
(
lpSrc
,
&
ddsd
);
ok
(
ddsd
.
ddckCKSrcBlt
.
dwColorSpaceLowValue
==
0x00FF00
&&
ddsd
.
ddckCKSrcBlt
.
dwColorSpaceHighValue
==
0x00FF00
,
"GetSurfaceDesc does not return the colorkey set with SetColorKey
\n
"
);
IDirectDrawSurface_Release
(
lpSrc
);
IDirectDrawSurface_Release
(
lpDst
);
}
...
...
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