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
a8ae03f2
Commit
a8ae03f2
authored
Aug 30, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Make tests pass when OpenGL libraries aren't present.
parent
c339d8e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
8 deletions
+23
-8
main.c
dlls/ddraw/main.c
+3
-1
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+9
-3
dsurface.c
dlls/ddraw/tests/dsurface.c
+10
-3
refcount.c
dlls/ddraw/tests/refcount.c
+1
-1
No files found.
dlls/ddraw/main.c
View file @
a8ae03f2
...
...
@@ -96,6 +96,8 @@ DDRAW_Create(GUID *guid,
TRACE
(
"(%s,%p,%p)
\n
"
,
debugstr_guid
(
guid
),
DD
,
UnkOuter
);
*
DD
=
NULL
;
/* We don't care about this guids. Well, there's no special guid anyway
* OK, we could
*/
...
...
@@ -164,7 +166,7 @@ DDRAW_Create(GUID *guid,
if
(
!
hWineD3D
)
{
ERR
(
"Couldn't load WineD3D - OpenGL libs not present?
\n
"
);
hr
=
E_NOTIMPL
;
hr
=
DDERR_NODIRECTDRAWSUPPORT
;
goto
err_out
;
}
...
...
dlls/ddraw/tests/ddrawmodes.c
View file @
a8ae03f2
...
...
@@ -59,12 +59,17 @@ static void createwindow(void)
}
static
void
createdirectdraw
(
void
)
static
BOOL
createdirectdraw
(
void
)
{
HRESULT
rc
;
rc
=
DirectDrawCreate
(
NULL
,
&
lpDD
,
NULL
);
ok
(
rc
==
DD_OK
,
"DirectDrawCreate returned: %lx
\n
"
,
rc
);
ok
(
rc
==
DD_OK
||
rc
==
DDERR_NODIRECTDRAWSUPPORT
,
"DirectDrawCreateEx returned: %lx
\n
"
,
rc
);
if
(
!
lpDD
)
{
trace
(
"DirectDrawCreateEx() failed with an error %lx
\n
"
,
rc
);
return
FALSE
;
}
return
TRUE
;
}
...
...
@@ -319,7 +324,8 @@ static void testcooperativelevels_exclusive(void)
START_TEST
(
ddrawmodes
)
{
createwindow
();
createdirectdraw
();
if
(
!
createdirectdraw
())
return
;
enumdisplaymodes
();
testdisplaymodes
();
flushdisplaymodes
();
...
...
dlls/ddraw/tests/dsurface.c
View file @
a8ae03f2
...
...
@@ -26,15 +26,21 @@
static
LPDIRECTDRAW
lpDD
=
NULL
;
static
void
CreateDirectDraw
(
void
)
static
BOOL
CreateDirectDraw
(
void
)
{
HRESULT
rc
;
rc
=
DirectDrawCreate
(
NULL
,
&
lpDD
,
NULL
);
ok
(
rc
==
DD_OK
,
"DirectDrawCreate returned: %lx
\n
"
,
rc
);
ok
(
rc
==
DD_OK
||
rc
==
DDERR_NODIRECTDRAWSUPPORT
,
"DirectDrawCreateEx returned: %lx
\n
"
,
rc
);
if
(
!
lpDD
)
{
trace
(
"DirectDrawCreateEx() failed with an error %lx
\n
"
,
rc
);
return
FALSE
;
}
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
NULL
,
DDSCL_NORMAL
);
ok
(
rc
==
DD_OK
,
"SetCooperativeLevel returned: %lx
\n
"
,
rc
);
return
TRUE
;
}
...
...
@@ -250,7 +256,8 @@ static void QueryInterface(void)
START_TEST
(
dsurface
)
{
CreateDirectDraw
();
if
(
!
CreateDirectDraw
())
return
;
MipMapCreationTest
();
SrcColorKey32BlitTest
();
QueryInterface
();
...
...
dlls/ddraw/tests/refcount.c
View file @
a8ae03f2
...
...
@@ -304,7 +304,7 @@ static void test_d3d_ifaces(void)
long
ref
;
hr
=
DirectDrawCreate
(
NULL
,
&
DDraw1
,
NULL
);
ok
(
hr
==
DD_OK
,
"DirectDrawCreate returned %08
lx
\n
"
,
hr
);
ok
(
hr
==
DD_OK
||
hr
==
DDERR_NODIRECTDRAWSUPPORT
,
"DirectDrawCreateEx returned: %
lx
\n
"
,
hr
);
if
(
!
DDraw1
)
{
trace
(
"DirectDrawCreate failed with %08lx
\n
"
,
hr
);
...
...
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