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
ebf1f4e6
Commit
ebf1f4e6
authored
May 09, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
May 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Add KEYSRCOVERRIDE test in p8_primary_test.
parent
6d86e7f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
visual.c
dlls/ddraw/tests/visual.c
+25
-0
No files found.
dlls/ddraw/tests/visual.c
View file @
ebf1f4e6
...
...
@@ -2314,6 +2314,31 @@ static void p8_primary_test()
"got R %02X G %02X B %02X, expected R 00 G 00 B FF
\n
"
,
GetRValue
(
color
),
GetGValue
(
color
),
GetBValue
(
color
));
rect
.
left
=
100
;
rect
.
top
=
200
;
rect
.
right
=
116
;
rect
.
bottom
=
216
;
memset
(
&
ddbltfx
,
0
,
sizeof
(
ddbltfx
));
ddbltfx
.
dwSize
=
sizeof
(
ddbltfx
);
ddbltfx
.
ddckSrcColorkey
.
dwColorSpaceLowValue
=
ddbltfx
.
ddckSrcColorkey
.
dwColorSpaceHighValue
=
2
;
hr
=
IDirectDrawSurface_Blt
(
Surface1
,
&
rect
,
offscreen
,
NULL
,
DDBLT_WAIT
|
DDBLT_KEYSRC
|
DDBLT_KEYSRCOVERRIDE
,
&
ddbltfx
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"IDirectDrawSurface_Blt returned: %x
\n
"
,
hr
);
hr
=
IDirectDrawSurface_Blt
(
Surface1
,
&
rect
,
offscreen
,
NULL
,
DDBLT_WAIT
|
DDBLT_KEYSRCOVERRIDE
,
&
ddbltfx
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface_Blt returned: %x
\n
"
,
hr
);
color
=
getPixelColor_GDI
(
Surface1
,
105
,
205
);
ok
(
GetRValue
(
color
)
==
0x80
&&
GetGValue
(
color
)
==
0
&&
GetBValue
(
color
)
==
0
,
"got R %02X G %02X B %02X, expected R 80 G 00 B 00
\n
"
,
GetRValue
(
color
),
GetGValue
(
color
),
GetBValue
(
color
));
color
=
getPixelColor_GDI
(
Surface1
,
112
,
212
);
ok
(
GetRValue
(
color
)
==
0
&&
GetGValue
(
color
)
==
0xFF
&&
GetBValue
(
color
)
==
0
,
"got R %02X G %02X B %02X, expected R 00 G FF B 00
\n
"
,
GetRValue
(
color
),
GetGValue
(
color
),
GetBValue
(
color
));
/* Test blitting and locking patterns that are likely to trigger bugs in opengl renderer (p8
surface conversion and uploading/downloading to/from opengl texture). Similar patterns (
blitting front buffer areas to/from an offscreen surface mixed with locking) are used by C&C
...
...
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