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
9bed6988
Commit
9bed6988
authored
Jan 29, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvideo.dll forgets to set the DDSD_CAPS flag, just assume it set.
Output more debug info on failure.
parent
9977e53e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
main.c
dlls/ddraw/ddraw/main.c
+14
-5
No files found.
dlls/ddraw/ddraw/main.c
View file @
9bed6988
...
...
@@ -470,14 +470,20 @@ Main_DirectDraw_CreateSurface(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD,
TRACE
(
"(%p)->(%p,%p,%p)
\n
"
,
This
,
pDDSD
,
ppSurf
,
pUnkOuter
);
TRACE
(
"Requested Caps: 0x%lx
\n
"
,
pDDSD
->
ddsCaps
.
dwCaps
);
if
(
pUnkOuter
!=
NULL
)
if
(
pUnkOuter
!=
NULL
)
{
FIXME
(
"outer != NULL?
\n
"
);
return
CLASS_E_NOAGGREGATION
;
/* unchecked */
}
if
(
!
(
pDDSD
->
dwFlags
&
DDSD_CAPS
))
return
DDERR_INVALIDPARAMS
;
/* unchecked */
if
(
!
(
pDDSD
->
dwFlags
&
DDSD_CAPS
))
{
/* DVIDEO.DLL does forget the DDSD_CAPS flag ... *sigh* */
pDDSD
->
dwFlags
|=
DDSD_CAPS
;
}
if
(
ppSurf
==
NULL
)
if
(
ppSurf
==
NULL
)
{
FIXME
(
"You want to get back a surface? Don't give NULL ptrs!
\n
"
);
return
E_POINTER
;
/* unchecked */
}
if
(
pDDSD
->
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
...
...
@@ -511,7 +517,10 @@ Main_DirectDraw_CreateSurface(LPDIRECTDRAW7 iface, LPDDSURFACEDESC2 pDDSD,
hr
=
create_offscreen
(
This
,
pDDSD
,
ppSurf
,
pUnkOuter
);
}
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
{
FIXME
(
"failed surface creation with code 0x%08lx
\n
"
,
hr
);
return
hr
;
}
return
DD_OK
;
}
...
...
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