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
df75a7e0
Commit
df75a7e0
authored
Jul 24, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: SetDisplayMode may fail.
parent
8de07265
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
visual.c
dlls/ddraw/tests/visual.c
+6
-2
No files found.
dlls/ddraw/ddraw.c
View file @
df75a7e0
...
...
@@ -614,7 +614,7 @@ IDirectDrawImpl_SetDisplayMode(IDirectDraw7 *iface,
LeaveCriticalSection
(
&
ddraw_cs
);
switch
(
hr
)
{
case
WINED3DERR_NOTAVAILABLE
:
return
DDERR_
INVALIDMODE
;
case
WINED3DERR_NOTAVAILABLE
:
return
DDERR_
UNSUPPORTED
;
default:
return
hr
;
};
}
...
...
dlls/ddraw/tests/visual.c
View file @
df75a7e0
...
...
@@ -61,8 +61,12 @@ static BOOL createObjects(void)
hr
=
IDirectDraw7_SetDisplayMode
(
DirectDraw
,
640
,
480
,
24
,
0
,
0
);
}
ok
(
hr
==
DD_OK
,
"IDirectDraw7_SetDisplayMode failed with %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
goto
err
;
ok
(
hr
==
DD_OK
||
hr
==
DDERR_UNSUPPORTED
,
"IDirectDraw7_SetDisplayMode failed with %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
/* use trace, the caller calls skip() */
trace
(
"SetDisplayMode failed
\n
"
);
goto
err
;
}
hr
=
IDirectDraw7_QueryInterface
(
DirectDraw
,
&
IID_IDirect3D7
,
(
void
**
)
&
Direct3D
);
if
(
hr
==
E_NOINTERFACE
)
goto
err
;
...
...
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